[Bps-public-commit] r16947 - sd/trunk/lib/App/SD/ForeignReplica
ruz at bestpractical.com
ruz at bestpractical.com
Thu Nov 20 10:50:55 EST 2008
Author: ruz
Date: Thu Nov 20 10:50:55 2008
New Revision: 16947
Modified:
sd/trunk/lib/App/SD/ForeignReplica/PullEncoder.pm
Log:
* @x = (...) || () is incorrect statement
Modified: sd/trunk/lib/App/SD/ForeignReplica/PullEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/ForeignReplica/PullEncoder.pm (original)
+++ sd/trunk/lib/App/SD/ForeignReplica/PullEncoder.pm Thu Nov 20 10:50:55 2008
@@ -7,8 +7,8 @@
my $add = shift;
my $del = shift;
- my @new = grep { defined } split( /\s*,\s*/, $current_value );
- my @old = (grep { defined $_ && $_ ne $add } @new, $del ) || ();
+ my @new = grep defined && length, split /\s*,\s*/, $current_value;
+ my @old = grep defined && length && $_ ne $add, (@new, $del);
return join( ", ", @old );
}
More information about the Bps-public-commit
mailing list