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
|
|
@ -173,7 +173,7 @@ Override this method in your asset if you want your asset to automatically run i
|
|||
=cut
|
||||
|
||||
sub getAutoCommitWorkflowId {
|
||||
return undef;
|
||||
return;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -536,9 +536,9 @@ sub www_purgeRevision {
|
|||
my $session = $self->session;
|
||||
return $session->privilege->insufficient() unless $self->canEdit;
|
||||
my $revisionDate = $session->form->process("revisionDate");
|
||||
return undef unless $revisionDate;
|
||||
return unless $revisionDate;
|
||||
my $asset = WebGUI::Asset->new($session,$self->getId,$self->get("className"),$revisionDate);
|
||||
return undef if ($asset->get('revisionDate') != $revisionDate);
|
||||
return if ($asset->get('revisionDate') != $revisionDate);
|
||||
my $parent = $asset->getParent;
|
||||
$asset->purgeRevision;
|
||||
if ($session->form->process("proceed") eq "manageRevisionsInTag") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue