diff options
author | Michael Muré <batolettre@gmail.com> | 2018-10-01 23:32:52 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-10-01 23:32:52 +0200 |
commit | 0fe7958aba02f53e2767f8dfa5017e1055185bcc (patch) | |
tree | d61a3556a18c968c646aa3e33edb66ea68b5a334 /bug/op_edit_comment.go | |
parent | 6ea6f3614e46a62f4a37c6afb488547a3d548191 (diff) | |
download | git-bug-0fe7958aba02f53e2767f8dfa5017e1055185bcc.tar.gz |
bug: message can be empty on edit comment
Diffstat (limited to 'bug/op_edit_comment.go')
-rw-r--r-- | bug/op_edit_comment.go | 4 |
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") } |