mirror of https://github.com/docker/cli.git
Merge pull request #31543 from chawlanikhil24/master
Replaced "err" with "nil" & added a comment
This commit is contained in:
commit
3b8ecc089b
2
cobra.go
2
cobra.go
|
@ -30,7 +30,7 @@ func SetupRootCommand(rootCmd *cobra.Command) {
|
||||||
// docker/docker/cli error messages
|
// docker/docker/cli error messages
|
||||||
func FlagErrorFunc(cmd *cobra.Command, err error) error {
|
func FlagErrorFunc(cmd *cobra.Command, err error) error {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
usage := ""
|
usage := ""
|
||||||
|
|
Loading…
Reference in New Issue