aboutsummaryrefslogtreecommitdiffstats
path: root/bug
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-10-01 23:32:52 +0200
committerMichael Muré <batolettre@gmail.com>2018-10-01 23:32:52 +0200
commit0fe7958aba02f53e2767f8dfa5017e1055185bcc (patch)
treed61a3556a18c968c646aa3e33edb66ea68b5a334 /bug
parent6ea6f3614e46a62f4a37c6afb488547a3d548191 (diff)
downloadgit-bug-0fe7958aba02f53e2767f8dfa5017e1055185bcc.tar.gz
bug: message can be empty on edit comment
Diffstat (limited to 'bug')
-rw-r--r--bug/op_edit_comment.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/bug/op_edit_comment.go b/bug/op_edit_comment.go
index f9f94f91..282b73bb 100644
--- a/bug/op_edit_comment.go
+++ b/bug/op_edit_comment.go
@@ -85,10 +85,6 @@ func (op *EditCommentOperation) Validate() error {
return fmt.Errorf("target hash is invalid")
}
- if text.Empty(op.Message) {
- return fmt.Errorf("message is empty")
- }
-
if !text.Safe(op.Message) {
return fmt.Errorf("message is not fully printable")
}