diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Readability.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Readability.php b/src/Readability.php index 7c04044..6bc9603 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -58,13 +58,9 @@ class Readability extends Element implements ReadabilityInterface // Node was initialized previously. Restoring score and setting flag. $this->initialized = true; $score = $node->getAttribute('data-readability'); - } else { - // Fresh, uninitialized node. - $score = 0; + $this->setContentScore($score); } } - - $this->setContentScore($score); } /** |