FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

LinkBack Thread Tools
Old 07-08-2011, 06:36 AM
Allan McRae
Default Remove pre-optimization from in_array()

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@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.

Thread Tools

All times are GMT. The time now is 09:16 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org