This should be slightly faster

Merge would honour changes, and removals
are equivalent to changing to default value.
This commit is contained in:
Aidan Woods 2019-01-25 20:23:04 +00:00
parent 57632f38fb
commit 9f9ef78662
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -112,9 +112,7 @@ final class Parsedown
if (isset($Block)) {
if ($Block instanceof StateUpdatingBlock) {
$this->State = $this->State->mergingWith(
$Block->latestState()
);
$this->State = $Block->latestState();
}
if (isset($CurrentBlock) && ! $Block->acquiredPrevious()) {