aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_add_comment.go
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2018-12-22 04:36:32 +0100
committerCyril Roelandt <tipecaml@gmail.com>2018-12-26 23:23:07 +0100
commit11e04748b93621a7d377d3163381ff1f38e5fdbe (patch)
treee19b418a848b50509fe6181648a4d75336c70157 /bug/op_add_comment.go
parent32b3e263fc8443f6089b9de8fbce833369461982 (diff)
downloadgit-bug-11e04748b93621a7d377d3163381ff1f38e5fdbe.tar.gz
Allow empty messages in comments.
Some bug trackers, like Launchpad, allow messages to be empty (when adding a file to the bug, for instance).
Diffstat (limited to 'bug/op_add_comment.go')
-rw-r--r--bug/op_add_comment.go4
1 files changed, 0 insertions, 4 deletions
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")
}