[pacman-dev] [PATCH 1/2] Remove pre-optimization from in_array()
    Allan McRae 
    allan at archlinux.org
       
    Fri Jul  8 02:36:53 EDT 2011
    
    
  
On 08/07/11 14:31, DJ Mills wrote:
> The '[[ -z' test in in_array() doesn't really do anything, so I'm
> removing it. I think this is much cleaner.
>
> Signed-off-by: DJ Mills<danielmills1 at gmail.com>
Pulled to my working branch.  I kept the 'for item in "$@"' part as I 
find it less clear what is being looped when $@ is not specified.
    
    
More information about the pacman-dev
mailing list