Commits

Shlomi Fish committed 3b8635f

Less complex trailing ifs expressions.

Comments (0)

Files changed (1)

    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;
 }