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>
This commit is contained in:
parent
7f5b24597b
commit
282be6bf4b
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue