Browse Source

Return inside of the if statement

master
Sorin Ionescu 12 years ago
parent
commit
6c1a81b5cf
  1. 4
      modules/git/functions/git-dir

4
modules/git/functions/git-dir

@ -10,7 +10,7 @@ local git_dir="${$(git rev-parse --git-dir):A}" @@ -10,7 +10,7 @@ local git_dir="${$(git rev-parse --git-dir):A}"
if [[ -n "$git_dir" ]]; then
print "$git_dir"
return 0
fi
else
return 1
fi

Loading…
Cancel
Save