Skip to content

Commit 229f96e

Browse files
committed
Copy/paste error; use === instead of ==
1 parent 9b85c9d commit 229f96e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/Sabberworm/CSS/Parser.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,10 @@ private function peek($iLength = 1, $iOffset = 0) {
470470
if (is_string($iOffset)) {
471471
$iOffset = $this->strlen($iOffset);
472472
}
473-
if (($peek = (!$iOffset && ($iLength == 1))) &&
473+
if (($peek = (!$iOffset && ($iLength === 1))) &&
474474
!is_null($this->peekCache)) {
475475
return $this->peekCache;
476476
}
477-
if (!is_null($this->peekCache) &&
478-
$iLength == 1 &&
479-
$iOffset = 0) {
480-
return $this->peekCache;
481-
}
482477
$iOffset += $this->iCurrentPosition;
483478
if ($iOffset >= $this->iLength) {
484479
return '';

0 commit comments

Comments
 (0)