Skip to content

Commit

Permalink
Minor rewrite.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 2, 2020
1 parent 1940b16 commit 44889cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Operation/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ private function cartesian(array $iterators): Generator
$last = array_pop($iterators);

if (null === $last) {
yield [];

return;
return yield [];
}

foreach ($this->cartesian($iterators) as $item) {
Expand Down

0 comments on commit 44889cd

Please sign in to comment.