From 11e04748b93621a7d377d3163381ff1f38e5fdbe Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Sat, 22 Dec 2018 04:36:32 +0100 Subject: Allow empty messages in comments. Some bug trackers, like Launchpad, allow messages to be empty (when adding a file to the bug, for instance). --- bug/op_add_comment.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'bug/op_add_comment.go') diff --git a/bug/op_add_comment.go b/bug/op_add_comment.go index c19b9593..2d6fb21a 100644 --- a/bug/op_add_comment.go +++ b/bug/op_add_comment.go @@ -58,10 +58,6 @@ func (op *AddCommentOperation) Validate() error { return err } - 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