# HG changeset patch # User Mahlon E. Smith # Date 1315349950 25200 # Node ID 2ab2df609cc7a1ad3d51d9a69d43006d21288ba4 # Parent 8c212bdb221bcc6a38bc3b43b28f8c3b3c144f7a small style cleanup diff -r 8c212bdb221b -r 2ab2df609cc7 shelldap --- a/shelldap Sat Mar 05 19:41:07 2011 +0100 +++ b/shelldap Tue Sep 06 15:59:10 2011 -0700 @@ -624,9 +624,9 @@ $conf->{'basedn'} = $namingContexts[0]; $self->{'base'} = $namingContexts[0]; } - if ( @_ ) { - my $base = canonical_dn($_[0], casefold => 'none'); - $self->{'base'} = $base if ($base); + if ( $_[0] ) { + my $base = canonical_dn( $_[0], casefold => 'none' ); + $self->{'base'} = $base if $base; } return $self->{'base'}; }