Skip to content

Commit

Permalink
Remove die() which can't be called (regex always matches).
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann authored and ingydotnet committed Aug 30, 2014
1 parent 065ddfc commit 96197c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/YAML/Loader.pm
Expand Up @@ -646,7 +646,7 @@ sub _parse_next_line {
else {
# First get rid of any comments.
while (@{$self->lines} && ($self->lines->[0] =~ /^\s*#/)) {
$self->lines->[0] =~ /^( *)/ or die;
$self->lines->[0] =~ /^( *)/;
last unless length($1) <= $offset;
shift @{$self->lines};
$self->{line}++;
Expand Down

0 comments on commit 96197c6

Please sign in to comment.