replaced return; with return undef;
This commit is contained in:
parent
ffa90c5fbd
commit
fa09c41598
113 changed files with 287 additions and 286 deletions
|
|
@ -58,7 +58,7 @@ The name of the stow variable.
|
|||
sub delete {
|
||||
my $self = shift;
|
||||
my $name = shift;
|
||||
return unless ($name);
|
||||
return undef unless ($name);
|
||||
delete $self->{_data}{$name};
|
||||
}
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ The name of the variable.
|
|||
sub get {
|
||||
my $self = shift;
|
||||
my $var = shift;
|
||||
return if $self->session->config->get("disableCache");
|
||||
return undef 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 unless ($name);
|
||||
return undef unless ($name);
|
||||
$self->{_data}{$name} = $value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue