forked from mozilla/readability
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code readability fixes (mozilla#645)
* Reduce number of elems in DIV_TO_P_ELEMS. This array is meant to contain block level elements but some of the elements are actually not block-level such as "a". * Remove redundant code. The isPaging variable can directly be assigned to page !== null making the ternary operator redundant. * Change `DIV_TO_P_ELEMS` from array to set since it only checks for membership * Use for...of when traversing nodelist Change loop on matches to only get the first match
- Loading branch information
1 parent
e7d5bfc
commit fc78270
Showing
1 changed file
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters