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

@ -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;
}