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:
parent
39b8b04d33
commit
525b72349b
@ -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[] */
|
||||||
|
Loading…
Reference in New Issue
Block a user