Skip to content

Commit

Permalink
fix(carton): remove a branch never happening
Browse files Browse the repository at this point in the history
The variable `has_command` is always set in this context since the
function should have already been exited from the above loop when
`has_command` is empty.
  • Loading branch information
akinomyoga committed Sep 25, 2023
1 parent 462feb3 commit cd063f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions completions/carton
Expand Up @@ -36,11 +36,7 @@ _comp_cmd_carton()
fi

case $prev in
--version | -v)
return
;;
--help | -h)
[[ $has_command ]] || _comp_cmd_carton__commands "$1"
--version | --help | -[vh])
return
;;
--cpanfile)
Expand Down

0 comments on commit cd063f9

Please sign in to comment.