Skip to content

Commit a93e0b1

Browse files
committed
lint: Fix error not checked in cmd.Help
1 parent 9625bfc commit a93e0b1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmd/root.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ var rootCmd = &cobra.Command{
4646
fmt.Println(Version)
4747
os.Exit(0)
4848
} else {
49-
cmd.Help()
49+
err := cmd.Help()
50+
if err != nil {
51+
logrus.Fatal(err)
52+
}
5053
}
5154
},
5255
}

0 commit comments

Comments
 (0)