diff options
author | Michael Muré <batolettre@gmail.com> | 2019-02-24 12:58:04 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:48:50 +0100 |
commit | e100ee9f10dd7f600b58bf3d24b36f9b286210d6 (patch) | |
tree | 0df0fb14642aeda9b21564112b5a876fc64b8990 /commands | |
parent | b59623a835f1f922d06ff7212b5bf7825624d134 (diff) | |
download | git-bug-e100ee9f10dd7f600b58bf3d24b36f9b286210d6.tar.gz |
github: fix 3 edge-case failures
Diffstat (limited to 'commands')
-rw-r--r-- | commands/comment_add.go | 2 | ||||
-rw-r--r-- | commands/label_add.go | 2 | ||||
-rw-r--r-- | commands/label_rm.go | 2 | ||||
-rw-r--r-- | commands/status_close.go | 2 | ||||
-rw-r--r-- | commands/status_open.go | 2 | ||||
-rw-r--r-- | commands/title_edit.go | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/commands/comment_add.go b/commands/comment_add.go index 58408bc5..80955da5 100644 --- a/commands/comment_add.go +++ b/commands/comment_add.go @@ -46,7 +46,7 @@ func runCommentAdd(cmd *cobra.Command, args []string) error { } } - err = b.AddComment(commentAddMessage) + _, err = b.AddComment(commentAddMessage) if err != nil { return err } diff --git a/commands/label_add.go b/commands/label_add.go index f04ed7d6..2b808311 100644 --- a/commands/label_add.go +++ b/commands/label_add.go @@ -22,7 +22,7 @@ func runLabelAdd(cmd *cobra.Command, args []string) error { return err } - changes, err := b.ChangeLabels(args, nil) + changes, _, err := b.ChangeLabels(args, nil) for _, change := range changes { fmt.Println(change) diff --git a/commands/label_rm.go b/commands/label_rm.go index 36051ba1..6b48fe72 100644 --- a/commands/label_rm.go +++ b/commands/label_rm.go @@ -22,7 +22,7 @@ func runLabelRm(cmd *cobra.Command, args []string) error { return err } - changes, err := b.ChangeLabels(nil, args) + changes, _, err := b.ChangeLabels(nil, args) for _, change := range changes { fmt.Println(change) diff --git a/commands/status_close.go b/commands/status_close.go index 2b4f9602..03618cc6 100644 --- a/commands/status_close.go +++ b/commands/status_close.go @@ -20,7 +20,7 @@ func runStatusClose(cmd *cobra.Command, args []string) error { return err } - err = b.Close() + _, err = b.Close() if err != nil { return err } diff --git a/commands/status_open.go b/commands/status_open.go index 5e3029e2..f19847db 100644 --- a/commands/status_open.go +++ b/commands/status_open.go @@ -20,7 +20,7 @@ func runStatusOpen(cmd *cobra.Command, args []string) error { return err } - err = b.Open() + _, err = b.Open() if err != nil { return err } diff --git a/commands/title_edit.go b/commands/title_edit.go index 6bbd1b0a..8848e7a8 100644 --- a/commands/title_edit.go +++ b/commands/title_edit.go @@ -44,7 +44,7 @@ func runTitleEdit(cmd *cobra.Command, args []string) error { fmt.Println("No change, aborting.") } - err = b.SetTitle(titleEditTitle) + _, err = b.SetTitle(titleEditTitle) if err != nil { return err } |