From 1db27a21a91a72bdbe33d15fa31d16dfaf3b1e68 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 13 Dec 2014 18:09:01 +0200 Subject: [PATCH] Add a no critic annotation --- lib/Gruntmaster/Data.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index e8b5c73..627fb8b 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -43,7 +43,7 @@ BEGIN { sub user_list { my $rs = $_[0]->users->search(undef, {columns => USER_PUBLIC_COLUMNS, prefetch => [qw/problem_statuses contest_statuses/]} ); - [ sort { $b->{solved} <=> $a->{solved} or $b->{attempted} <=> $a->{attempted} }map { + [ sort { $b->{solved} <=> $a->{solved} or $b->{attempted} <=> $a->{attempted} } map { ## no critic (ProhibitReverseSort) my $solved = $_->problem_statuses->count(solved => 1); my $attempted = $_->problem_statuses->count(solved => 0); my $contests = $_->contest_statuses->count; -- 2.39.2