Skip to content

Commit

Permalink
Remove cmd nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
dearchap committed Oct 20, 2024
1 parent 6511ddb commit 48f5e3b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions help.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,6 @@ func ShowSubcommandHelpAndExit(cmd *Command, exitCode int) {

// ShowSubcommandHelp prints help for the given subcommand
func ShowSubcommandHelp(cmd *Command) error {
if cmd == nil {
return nil
}

HelpPrinter(cmd.Root().Writer, SubcommandHelpTemplate, cmd)
return nil
}
Expand Down

0 comments on commit 48f5e3b

Please sign in to comment.