Skip to content

Commit

Permalink
Simplify a loop block, hopefully also avoiding a nasty buggenz
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Broadwell committed Oct 22, 2012
1 parent 0600709 commit 49d7be1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bench
Expand Up @@ -132,14 +132,7 @@ multi MAIN ('build', *@components) {

my $build_steps = $comp<info><build_steps>;
for $build_steps.list -> $step {
if $step ~~ Positional {
# run |$step;
# say "run: $step";
}
else {
# shell $step;
# say "shell: $step";
}
$step ~~ Positional ?? run(|$step) !! shell($step);
}
}
}
Expand Down

0 comments on commit 49d7be1

Please sign in to comment.