aboutsummaryrefslogtreecommitdiffstats
path: root/commands/comment.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/comment.go')
-rw-r--r--commands/comment.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/commands/comment.go b/commands/comment.go
index 252fb7e4..ebbeaa77 100644
--- a/commands/comment.go
+++ b/commands/comment.go
@@ -49,13 +49,9 @@ func runComment(cmd *cobra.Command, args []string) error {
return err
}
- addCommentOp := operations.NewAddCommentOp(author, commentMessage)
+ operations.Comment(b, author, commentMessage)
- b.Append(addCommentOp)
-
- err = b.Commit(repo)
-
- return err
+ return b.Commit(repo)
}
var commentCmd = &cobra.Command{