Skip to content

Commit

Permalink
[FIX] make Perl::Critic happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikHentscheAMD committed Feb 20, 2012
1 parent be2268e commit e5cfa10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Tapper/Notification.pm
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ sub get_testrun_success
{
my ($testrun_id) = @_;
my $stats = model('ReportsDB')->resultset('ReportgroupTestrunStats')->search({testrun_id => $testrun_id});
return undef if not $stats->count;
return if not $stats->count;
return ($stats->first->success_ratio == 100) ? 'pass' : 'fail';
}

Expand Down Expand Up @@ -263,12 +263,13 @@ sub matches
default { return };
}

## no critic ProhibitNestedSubs
sub testrun { return unless $testrun; return ( @_ ? $testrun->{$_[0]} : $testrun ) }
sub report { return unless $report; return ( @_ ? $report->{$_[0]} : $report ) }
sub deep_search { return dpath($_[1])->match($_[0]) }

my $success;
$success = eval($condition);
$success = eval($condition); ## no critic
return $success;
}

Expand Down

0 comments on commit e5cfa10

Please sign in to comment.