aboutsummaryrefslogtreecommitdiffstats
path: root/termui/show_bug.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-13 12:20:28 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-13 12:20:28 +0200
commitf569e6aacc0690e7b1bebf33a10a8e0d154937df (patch)
treec17ac2201b7abbc6889137d968c8450dc3099f9a /termui/show_bug.go
parent8a25c63d6972d9168dcb3599066076bdb84f8790 (diff)
downloadgit-bug-f569e6aacc0690e7b1bebf33a10a8e0d154937df.tar.gz
operations: return a more convenient array of result for label changes
Diffstat (limited to 'termui/show_bug.go')
-rw-r--r--termui/show_bug.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/termui/show_bug.go b/termui/show_bug.go
index 3d4b257f..eb112674 100644
--- a/termui/show_bug.go
+++ b/termui/show_bug.go
@@ -600,7 +600,7 @@ func (sb *showBug) addLabel(g *gocui.Gui, v *gocui.View) error {
return r == ' ' || r == ','
})
- err := sb.bug.ChangeLabels(nil, trimLabels(labels), nil)
+ _, err := sb.bug.ChangeLabels(trimLabels(labels), nil)
if err != nil {
ui.msgPopup.Activate(msgPopupErrorTitle, err.Error())
}
@@ -623,7 +623,7 @@ func (sb *showBug) removeLabel(g *gocui.Gui, v *gocui.View) error {
return r == ' ' || r == ','
})
- err := sb.bug.ChangeLabels(nil, nil, trimLabels(labels))
+ _, err := sb.bug.ChangeLabels(nil, trimLabels(labels))
if err != nil {
ui.msgPopup.Activate(msgPopupErrorTitle, err.Error())
}