Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

Commit 3db42bd

Browse files
committed
Remove unnecessary condition on MemoizeIterator::rewind()
1 parent ef997c2 commit 3db42bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Iterator/MemoizeIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function next()
3838
public function rewind()
3939
{
4040
$this->index = 0;
41-
if (!$this->cacheCompleted && $this->cacheSize === 0) {
41+
if (!$this->cacheCompleted) {
4242
$this->it->rewind();
4343
$this->memo();
4444
}

0 commit comments

Comments
 (0)