Skip to content

Commit

Permalink
update switch case in HelpCommand.Do()
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Dec 29, 2017
1 parent 239a709 commit b128527
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/semaphore/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,7 @@ func (c *HelpCommand) Desc() string {
// Do handles inner error and shows a specific message.
func (c *HelpCommand) Do() error {
switch c.Error {
case nil:
fallthrough
case errNotProvided:
fallthrough
case flag.ErrHelp:
case nil, errNotProvided, flag.ErrHelp:
c.Usage()
return nil
case errNotFound:
Expand Down

0 comments on commit b128527

Please sign in to comment.