aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_add_comment.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-12-27 21:53:48 +0100
committerGitHub <noreply@github.com>2018-12-27 21:53:48 +0100
commit171acad6194dc1ceecca36d3d50795d5c84985d1 (patch)
tree59ac2fd7dfdc801b434cf41478a1933a4a8423e1 /bug/op_add_comment.go
parent3f694195f86f22ac10e04bf0f0f70535fa30a4a0 (diff)
parent11e04748b93621a7d377d3163381ff1f38e5fdbe (diff)
downloadgit-bug-171acad6194dc1ceecca36d3d50795d5c84985d1.tar.gz
Merge pull request #84 from Steap/allow-empty-comment-message
Allow empty messages in comments.
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")
}