Avoid unnecessary if statement
This commit is contained in:
parent
d3c10410d6
commit
1c43d25e35
|
@ -73,11 +73,9 @@ func (c *Command) predict(a Args) (options []string, only bool) {
|
||||||
if only {
|
if only {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// We matched so stop searching. Continuing to search can accidentally
|
// We matched so stop searching. Continuing to search can accidentally
|
||||||
// match a subcommand with current set of commands, see issue #46.
|
// match a subcommand with current set of commands, see issue #46.
|
||||||
if subCommandFound {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue