contentcollector: Delete unnecessary truthiness check

pull/4685/head
Richard Hansen 2021-01-21 02:34:50 -05:00 committed by John McLear
parent fc2420c244
commit b811030846
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ const makeContentCollector = (collectStyles, abrowser, apool, className2Author)
if (!rr && !type) {
for (let i = 0; i < dom.numChildNodes(node); i++) {
const child = dom.childNode(node, i);
if (child && child.name === 'ul') {
if (child.name === 'ul') {
type = dom.getAttribute(child, 'class');
if (type) {
break;