We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 535fdd1 commit 1a91a7dCopy full SHA for 1a91a7d
pkg/cli/cmd_help.go
@@ -67,11 +67,9 @@ func runHelp(cmd *Command, rawArgs []string) error {
67
}
68
69
return fmt.Errorf("Unknown help topic `%s`. Run 'scw help'.", name)
70
- } else {
71
- t := template.New("top")
72
- template.Must(t.Parse(helpTemplate))
73
- ctx := cmd.GetContext(rawArgs)
74
- return t.Execute(ctx.Stdout, Commands)
75
76
- return nil
+ t := template.New("top")
+ template.Must(t.Parse(helpTemplate))
+ ctx := cmd.GetContext(rawArgs)
+ return t.Execute(ctx.Stdout, Commands)
77
0 commit comments