aboutsummaryrefslogtreecommitdiffstats
path: root/commands/deselect.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/deselect.go')
-rw-r--r--commands/deselect.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/commands/deselect.go b/commands/deselect.go
index 23f77e2d..d8c44dd7 100644
--- a/commands/deselect.go
+++ b/commands/deselect.go
@@ -17,11 +17,10 @@ git bug comment
git bug status
git bug deselect
`,
- PreRunE: loadBackend(env),
- PostRunE: closeBackend(env),
- RunE: func(cmd *cobra.Command, args []string) error {
+ PreRunE: loadBackend(env),
+ RunE: closeBackend(env, func(cmd *cobra.Command, args []string) error {
return runDeselect(env)
- },
+ }),
}
return cmd