Don't check mkrun_runner arguments for definedness twice
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Runner / Verifier.pm
index bb8652d641c8ba0196fc27755f8cedb25795ddf0..463fd7101eade579fc3c3cdf523ab6733431cf12 100644 (file)
@@ -9,19 +9,19 @@ use File::Slurp qw/slurp/;
 use Log::Log4perl qw/get_logger/;
 use Try::Tiny;
 
-our $VERSION = '5999.000_003';
+our $VERSION = '5999.000_004';
 
 ##################################################
 
 sub run{
        my ($test, $meta) = @_;
        get_logger->trace("Running on test $test...");
-       $meta->{files}{prog}{run}->($meta->{files}{prog}{name}, fds => [qw/0 input 1 >output/], map {defined $meta->{$_} ? ($_ => $meta->{$_}) : () } qw/timeout olimit mlimit/);
+       $meta->{files}{prog}{run}->($meta->{files}{prog}{name}, fds => [qw/0 input 1 >output/], map { $_ => $meta->{$_} } qw/timeout olimit mlimit/);
 
        try {
                $meta->{files}{ver}{run}->($meta->{files}{ver}{name}, fds => [qw/0 input 3 output 1 >result/], args => [$test]);
        } catch {
-               die [WA, "Wrong answer"]
+               die [WA, 'Wrong answer'] ## no critic (RequireCarping)
        };
        scalar slurp 'result';
 }
This page took 0.010744 seconds and 4 git commands to generate.