From 6a12373965aff9f80147f8b5bff6a5a104927365 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 25 Jul 2018 18:01:32 +0200 Subject: more refactoring to have reusable bug action across different UI --- commands/comment.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'commands/comment.go') 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{ -- cgit