Warning cleanup, and avoid a double call to uc
Rafael Garcia-Suarez [Mon, 28 Jan 2008 14:06:59 +0000 (14:06 +0000)]
p4raw-id: //depot/perl@33092

lib/TAP/Parser/Grammar.pm

index d82b455..1f5f2c3 100644 (file)
@@ -133,7 +133,7 @@ my %language_for;
                 }
                 return $self->_make_test_token(
                     $line,   $ok, $num, $desc,
-                    uc $dir, $explanation
+                    $dir, $explanation
                 );
             },
         },
@@ -372,7 +372,7 @@ sub _make_test_token {
         ok          => $ok,
         test_num    => $num,
         description => _trim($desc),
-        directive   => uc($dir),
+        directive   => uc($dir || ""),
         explanation => _trim($explanation),
         raw         => $line,
         type        => 'test',