Skip to content

Commit

Permalink
Update Last operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 21, 2019
1 parent 3fcbf00 commit af9e6a8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Operation/Last.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ public function run(CollectionInterface $collection)
/** @var \Iterator $iterator */
$iterator = $collection->getIterator();

$iterator->rewind();

$last = $iterator->current();

while (true === $iterator->valid()) {
Expand Down

0 comments on commit af9e6a8

Please sign in to comment.