Skip to content

Commit

Permalink
Minor cosmetic changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 30, 2022
1 parent 07b6298 commit 066504a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Operation/Chunk.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static function (iterable $iterable) use ($sizes): Generator {
$size = $sizesIterator->current();

if (0 >= $size) {
return yield from [];
return;
}

if (count($values) !== $size) {
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/ScanLeft1.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static function (iterable $iterable) use ($callback): Generator {
$iteratorInitial = $iteratorAggregate->getIterator();

if (false === $iteratorInitial->valid()) {
return yield from [];
return;
}

$initial = $iteratorInitial->current();
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/Since.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static function (iterable $iterable) use ($callbacks): Generator {
)($iteratorAggregate);

if (false === $every->current()) {
return yield from (new Limit())()(-1)($every->key())($iteratorAggregate);
yield from (new Limit())()(-1)($every->key())($iteratorAggregate);
}
};
}
Expand Down

0 comments on commit 066504a

Please sign in to comment.