first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead
This commit is contained in:
parent
75041656ee
commit
96178fd70c
92 changed files with 209 additions and 209 deletions
|
|
@ -328,7 +328,7 @@ sub getWorking {
|
|||
$session->stow->set("versionTag",$tag);
|
||||
return $tag;
|
||||
} elsif ($noCreate) {
|
||||
return undef;
|
||||
return;
|
||||
} else {
|
||||
my $tag = $class->create($session);
|
||||
$tag->setWorking;
|
||||
|
|
@ -375,7 +375,7 @@ sub new {
|
|||
my $session = shift;
|
||||
my $tagId = shift;
|
||||
my $data = $session->db->getRow("assetVersionTag","tagId", $tagId);
|
||||
return undef unless $data->{tagId};
|
||||
return unless $data->{tagId};
|
||||
bless {_session=>$session, _id=>$tagId, _data=>$data}, $class;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue