aboutsummaryrefslogtreecommitdiffstats
path: root/commands/label add.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/label add.go')
-rw-r--r--commands/label add.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/label add.go b/commands/label add.go
index c7a37be8..fccbfaa3 100644
--- a/commands/label add.go
+++ b/commands/label add.go
@@ -28,14 +28,15 @@ func runLabelAdd(cmd *cobra.Command, args []string) error {
}
changes, err := b.ChangeLabels(add, nil)
- if err != nil {
- return err
- }
for _, change := range changes {
fmt.Println(change)
}
+ if err != nil {
+ return err
+ }
+
return b.Commit()
}