1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Expensive operation last

This commit is contained in:
Aidan Woods 2020-01-19 15:34:04 +00:00
parent 39b8b04d33
commit 525b72349b
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -79,7 +79,7 @@ final class Lines
/** @return bool */ /** @return bool */
public function isEmpty() public function isEmpty()
{ {
return \count($this->Contexts) === 0 && $this->trailingBlankLines === 0; return ! $this->containsBlankLines && \count($this->Contexts) === 0;
} }
/** @return Context[] */ /** @return Context[] */