From 0fe7958aba02f53e2767f8dfa5017e1055185bcc Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 1 Oct 2018 23:32:52 +0200 Subject: bug: message can be empty on edit comment --- bug/op_edit_comment.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'bug/op_edit_comment.go') 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") } -- cgit