Skip to content

Commit 4192134

Browse files
committed
remove redundant if block
1 parent bf9d35d commit 4192134

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import (
99

1010
func main() {
1111
if err := cmd.RootCmd.Execute(); err != nil {
12-
if err != nil {
13-
log.Error(err.Error())
14-
os.Exit(1)
15-
}
12+
log.Error(err.Error())
13+
os.Exit(1)
1614
}
1715
}

0 commit comments

Comments
 (0)