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/open.go | |
parent | 49c90eab26875cbf3094d9a546ad29b426e174a1 (diff) | |
download | git-bug-6a12373965aff9f80147f8b5bff6a5a104927365.tar.gz git-bug-6a12373965aff9f80147f8b5bff6a5a104927365.zip |
more refactoring to have reusable bug action across different UI
Diffstat (limited to 'commands/open.go')
-rw-r--r-- | commands/open.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/commands/open.go b/commands/open.go index 7fa59b491..c99578cfe 100644 --- a/commands/open.go +++ b/commands/open.go @@ -28,13 +28,9 @@ func runOpenBug(cmd *cobra.Command, args []string) error { return err } - op := operations.NewSetStatusOp(author, bug.OpenStatus) + operations.Open(b, author) - b.Append(op) - - err = b.Commit(repo) - - return err + return b.Commit(repo) } var openCmd = &cobra.Command{ |