Skip to content

Commit 9224dd9

Browse files
committed
Save another isEnd() call in peek().
We already do a boundary check later in the method (after determining the peek size).
1 parent 1cc1e55 commit 9224dd9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Sabberworm/CSS/Parser.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,6 @@ private function comes($sString, $iOffset = 0, $bCaseInsensitive = true) {
463463
}
464464

465465
private function peek($iLength = 1, $iOffset = 0) {
466-
if ($this->isEnd()) {
467-
return '';
468-
}
469466
if (is_string($iLength)) {
470467
$iLength = $this->strlen($iLength);
471468
}

0 commit comments

Comments
 (0)