Remove generation of an unnecessary warning

We've checked the return for definedness and
assigned an empty string to it ao we don't want
to make it undef again

This is a good argument that cascading if-elses expecially with
long unstructured elses are a bad idea

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Colin Campbell 2010-05-19 15:00:09 +01:00 committed by Chris Cormack
parent 7cd47b0e84
commit 8a8358b179

View file

@ -172,7 +172,7 @@ if ( $op eq 'delete_confirm' ) {
basketgroupname => $basket->{'basketname'});
}
} elsif ($query->param('op') eq 'reopen') {
} elsif ($op eq 'reopen') {
my $basket;
$basket->{basketno} = $query->param('basketno');
$basket->{closedate} = undef;