Fix gruntmasterd crashes
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 29 Jan 2014 23:11:10 +0000 (01:11 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 29 Jan 2014 23:11:10 +0000 (01:11 +0200)
lib/Gruntmaster/Daemon/Judge/Absolute.pm

index 010cf0b..2adea01 100644 (file)
@@ -11,8 +11,8 @@ our $VERSION = '0.001';
 ##################################################
 
 sub judge{
-  $_ = pop;
-  ref $_ ? (result => $_->[0], result_text => $_->[1]) : (result => AC, result_text => 'Accepted')
+       my $result = pop;
+       ref $result ? (result => $result->[0], result_text => $result->[1]) : (result => AC, result_text => 'Accepted')
 }
 
 1;
This page took 0.01589 seconds and 4 git commands to generate.