mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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
@ -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…
Reference in New Issue
Block a user