Skip to content

Commit

Permalink
refactor: Minor optimization in Split operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 3, 2021
1 parent 9be6443 commit ae36094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Operation/Split.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static function (Iterator $iterator) use ($type, $callbacks): Generator {
$carry = [];
}

if (Splitable::BEFORE === $type || Splitable::REMOVE === $type) {
if (Splitable::AFTER !== $type) {
$carry[] = $value;
}
}
Expand Down

0 comments on commit ae36094

Please sign in to comment.