Skip to content

Commit 1e58def

Browse files
committed
Remove useless condition for the parsing of cdata
The caller already ensures that the current token is the right one.
1 parent 4c337c8 commit 1e58def

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/HTML5/Parser/Tokenizer.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -865,9 +865,6 @@ protected function quotedString($stopchars)
865865
*/
866866
protected function cdataSection()
867867
{
868-
if ('[' != $this->scanner->current()) {
869-
return false;
870-
}
871868
$cdata = '';
872869
$this->scanner->consume();
873870

0 commit comments

Comments
 (0)