Skip to content

Commit

Permalink
Fixed SC2145 violation
Browse files Browse the repository at this point in the history
  • Loading branch information
shyiko committed Nov 8, 2014
1 parent 08184d4 commit 7780c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commacd.bash
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ _commacd_backward() {
local dir=
case $# in
0) dir=$(_commacd_backward_vcs_root);;
1) dir=$(_commacd_backward_by_prefix "$@")
1) dir=$(_commacd_backward_by_prefix "$*")
if [[ -z "$COMMACD_NOFUZZYFALLBACK" && "$dir" == "$PWD" ]]; then
dir=$(_commacd_backward_by_prefix "*$@")
dir=$(_commacd_backward_by_prefix "*$*")
fi;;
2) dir=$(_commacd_backward_substitute "$@");;
*) return 1
Expand Down

0 comments on commit 7780c93

Please sign in to comment.