summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDJ Mills <danielmills1@gmail.com>2011-07-08 00:31:22 -0400
committerDan McGee <dan@archlinux.org>2011-07-14 15:42:37 -0500
commit282be6bf4b87678d3b634a5bc6a8a1c097e593ea (patch)
treeb4f301c2a08f7494d89f1bf49b3b7d959533e139 /scripts
parent7f5b24597bec4d74328c62467ad778f7eaae75a1 (diff)
downloadpacman-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')
-rw-r--r--scripts/makepkg.sh.in1
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