diff options
| author | Alex Dadgar <[email protected]> | 2017-08-24 11:08:51 -0700 |
|---|---|---|
| committer | Alex Dadgar <[email protected]> | 2017-08-24 11:08:51 -0700 |
| commit | 1c43d25e3519cc70fc238d669f7b2aa826ac716a (patch) | |
| tree | 6b8f907761228fc3693b41a04a56e993fb9a2f38 | |
| parent | d3c10410d6ceaf0874b5a646f02c88170be33d4c (diff) | |
Avoid unnecessary if statement
| -rw-r--r-- | command.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -73,11 +73,9 @@ func (c *Command) predict(a Args) (options []string, only bool) { if only { return } - } - // We matched so stop searching. Continuing to search can accidentally - // match a subcommand with current set of commands, see issue #46. - if subCommandFound { + // We matched so stop searching. Continuing to search can accidentally + // match a subcommand with current set of commands, see issue #46. break } } |
