Don't check mkrun_runner arguments for definedness twice
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Runner / Verifier.pm
index fd267cd88691664685f18f17f480ac099f862570..463fd7101eade579fc3c3cdf523ab6733431cf12 100644 (file)
@@ -16,12 +16,12 @@ 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.01051 seconds and 4 git commands to generate.