Commits

Shlomi Fish  committed 3b8635f

Less complex trailing ifs expressions.

  • Participants
  • Parent commits 3731e09

Comments (0)

Files changed (1)

File lib/Parser/MGC.pm

    my $e = $@;
 
    pos($self->{str}) = $pos;
-
-   die $e if $committed or not eval { $e->isa( "Parser::MGC::Failure" ) };
+   if ($committed or
+       (! eval { $e->isa( "Parser::MGC::Failure" ) })) {
+       die $e;
+   }
    return undef;
 }