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
|
|
@ -584,8 +584,8 @@ An integer between 1 and 5 (5 being best) to rate this post with.
|
|||
sub rate {
|
||||
my $self = shift;
|
||||
my $rating = shift;
|
||||
return undef unless ($rating == -1 || $rating == 1);
|
||||
return undef if $self->hasRated;
|
||||
return unless ($rating == -1 || $rating == 1);
|
||||
return if $self->hasRated;
|
||||
$self->SUPER::rate($rating);
|
||||
|
||||
##Thread specific karma adjustment for CS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue