diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-25 18:01:32 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-25 18:01:32 +0200 |
commit | 6a12373965aff9f80147f8b5bff6a5a104927365 (patch) | |
tree | ccc1e34fba059512acab39286a86f6b73c5ad318 /commands/comment.go | |
parent | 49c90eab26875cbf3094d9a546ad29b426e174a1 (diff) | |
download | git-bug-6a12373965aff9f80147f8b5bff6a5a104927365.tar.gz |
more refactoring to have reusable bug action across different UI
Diffstat (limited to 'commands/comment.go')
-rw-r--r-- | commands/comment.go | 8 |
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{ |