Skip to content

Commit 33e57be

Browse files
committed
Revert unwanted changes
1 parent 46f5811 commit 33e57be

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,5 @@ func main() {
5656
return color + abbrev + "\033[0m"
5757
},
5858
})
59-
err := cmd.Execute()
60-
if err != nil {
61-
os.Exit(1)
62-
}
59+
cmd.Execute()
6360
}

packages/cmd/root.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ var rootCmd = &cobra.Command{
3030

3131
// Execute adds all child commands to the root command and sets flags appropriately.
3232
// This is called by main.main(). It only needs to happen once to the rootCmd.
33-
func Execute() error {
34-
return rootCmd.Execute()
33+
func Execute() {
34+
err := rootCmd.Execute()
35+
if err != nil {
36+
os.Exit(1)
37+
}
3538
}
3639

3740
func ExecuteContext(ctx context.Context) error {

0 commit comments

Comments
 (0)