Skip to content

Commit

Permalink
#84: removed @todo marker
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGoryunov committed Aug 26, 2021
1 parent 67c906a commit 3803879
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/ArrayAddingIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ public function __construct(
*/
public function from(Iterator $source): AddingIterator
{
/**
* @todo #66:20min Add a decorator for AddingIterator which does not
* allow to add values if source is not valid.
*/
if ($source->valid()) {
$this->added[$source->key()] ??= $source->current();
}
$this->added[$source->key()] ??= $source->current();
return new self($this->added);
}

Expand Down

0 comments on commit 3803879

Please sign in to comment.