40 executeVersionCmd()
41 return nil
42 } else if len(args) == 0 {
43 cmd.Usage() 44 return nil
45 }
46
The function returns an error, but this line does not check for it. If you don’t want to handle the error, throw a panic
.
Ref: Error handling -- https://blog.golang.org/error-handling-and-go.