mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 05:31:47 +00:00
clean some redundant else clauses
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
+2
-3
@@ -23,10 +23,9 @@ func (cli *DockerCli) CmdHelp(args ...string) error {
|
||||
method, exists := cli.getMethod(args[0])
|
||||
if !exists {
|
||||
return fmt.Errorf("docker: '%s' is not a docker command. See 'docker --help'.", args[0])
|
||||
} else {
|
||||
method("--help")
|
||||
return nil
|
||||
}
|
||||
method("--help")
|
||||
return nil
|
||||
}
|
||||
|
||||
flag.Usage()
|
||||
|
||||
Reference in New Issue
Block a user