bug: message can be empty on edit comment

Michael Muré created

Change summary

bug/op_edit_comment.go | 4 ----
1 file changed, 4 deletions(-)

Detailed changes

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")
 	}