Skip to content

Commit f682439

Browse files
committed
Remove redundant null check
The argument can only be `DOMElement`, not `null`.
1 parent 93fc76a commit f682439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Readability.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ public function prepArticle(\DOMNode $articleContent): void
553553
*/
554554
public function getInnerText($e, bool $normalizeSpaces = true, bool $flattenLines = false): string
555555
{
556-
if (null === $e || !isset($e->textContent) || '' === $e->textContent) {
556+
if (!isset($e->textContent) || '' === $e->textContent) {
557557
return '';
558558
}
559559

0 commit comments

Comments
 (0)