HomePhabricator

[IMPROV] Optimize/remove unneeded calls to Page.isEmpty()

Authored by Malafaya.

Description

[IMPROV] Optimize/remove unneeded calls to Page.isEmpty()

A check for Page.isEmpty() is unnecessary as it will never be checked when it
would yield True.
A sequence of conditions was also optimized (quicker condition check first)
when replacing links.

Change-Id: Ib68446a77f52f59440d9f50fef416b9bfdb39827

Details