Skip to content

Commit

Permalink
Merge pull request #942 from Altai-man/empty-emit-fix
Browse files Browse the repository at this point in the history
Simplification of LAST block
  • Loading branch information
lizmat committed Dec 8, 2016
2 parents 08ccbbb + 58cdfd8 commit 7511b43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/Rakudo/Internals/VMBackedDecoder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ augment class Rakudo::Internals {
my $available = $decoder.consume-available-chars();
emit $available if $available ne '';
LAST {
with $decoder {
my $rest = .consume-all-chars();
emit $rest if $rest ne '';
}
if $decoder.consume-all-chars() -> $rest { emit $rest };
}
}
}
Expand Down

0 comments on commit 7511b43

Please sign in to comment.