Skip to content

Commit

Permalink
We don't need special Failure check here
Browse files Browse the repository at this point in the history
Assigning a Failure will throw it anyways
  • Loading branch information
lizmat committed Jul 31, 2016
1 parent 373634e commit 6972d50
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/core/Any-iterable-methods.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1173,13 +1173,9 @@ Did you mean to add a stub (\{...\}) or did you mean to .classify?"
nqp::eqaddr((my $pulled := $iterator.pull-one),IterationEnd),
nqp::if(
nqp::isconcrete($pulled),
nqp::if(
nqp::istype($pulled,Failure),
$pulled.exception.throw,
nqp::stmts(
(first = $pulled),
(return $iterator)
)
nqp::stmts(
(first = $pulled),
(return $iterator)
)
)
),
Expand Down

0 comments on commit 6972d50

Please sign in to comment.