Commit fad8d51
committed
fix(LogController): prevent iterator from jumping over the last item
- when requesting getLastItem(), logIteratorFactory->getLogIterator() creates a new LogIterator(), which in construct calls $this->rewind() -> $this->next(). So this should already return a last known line in the file, there is no need for $iterator->next() to be called again
Signed-off-by: Maksim Sukharev <[email protected]>1 parent 1da32ea commit fad8d51
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
0 commit comments