From 282be6bf4b87678d3b634a5bc6a8a1c097e593ea Mon Sep 17 00:00:00 2001 From: DJ Mills Date: Fri, 8 Jul 2011 00:31:22 -0400 Subject: makepkg: Remove pre-optimization from in_array() The '[[ -z' test in in_array() is redundant, so remove it. Signed-off-by: DJ Mills Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 1 - 1 file changed, 1 deletion(-) (limited to 'scripts/makepkg.sh.in') 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 -- cgit v1.2.3-70-g09d2