first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead

This commit is contained in:
Colin Kuskie 2007-12-05 00:30:43 +00:00
parent 75041656ee
commit 96178fd70c
92 changed files with 209 additions and 209 deletions

View file

@ -58,7 +58,7 @@ The name of the stow variable.
sub delete {
my $self = shift;
my $name = shift;
return undef unless ($name);
return unless ($name);
delete $self->{_data}{$name};
}
@ -108,7 +108,7 @@ The name of the variable.
sub get {
my $self = shift;
my $var = shift;
return undef if $self->session->config->get("disableCache");
return if $self->session->config->get("disableCache");
return $self->{_data}{$var};
}
@ -167,7 +167,7 @@ sub set {
if $self->session->config->get("disableCache");
my $name = shift;
my $value = shift;
return undef unless ($name);
return unless ($name);
$self->{_data}{$name} = $value;
}