diff options
author | DJ Mills <danielmills1@gmail.com> | 2011-07-08 06:31:22 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-14 22:42:37 +0200 |
commit | 282be6bf4b87678d3b634a5bc6a8a1c097e593ea (patch) | |
tree | b4f301c2a08f7494d89f1bf49b3b7d959533e139 /scripts/makepkg.sh.in | |
parent | 7f5b24597bec4d74328c62467ad778f7eaae75a1 (diff) | |
download | pacman-282be6bf4b87678d3b634a5bc6a8a1c097e593ea.tar.gz pacman-282be6bf4b87678d3b634a5bc6a8a1c097e593ea.tar.xz |
makepkg: Remove pre-optimization from in_array()
The '[[ -z' test in in_array() is redundant, so remove it.
Signed-off-by: DJ Mills <danielmills1@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 5e5a977a..df4e08e6 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -319,7 +319,6 @@ in_opt_array() { ## in_array() { local needle=$1; shift - [[ -z $1 ]] && return 1 # Not Found local item for item in "$@"; do [[ $item = $needle ]] && return 0 # Found |