mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
contentcollector: Delete unnecessary truthiness check
This commit is contained in:
parent
fc2420c244
commit
b811030846
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ const makeContentCollector = (collectStyles, abrowser, apool, className2Author)
|
||||||
if (!rr && !type) {
|
if (!rr && !type) {
|
||||||
for (let i = 0; i < dom.numChildNodes(node); i++) {
|
for (let i = 0; i < dom.numChildNodes(node); i++) {
|
||||||
const child = dom.childNode(node, i);
|
const child = dom.childNode(node, i);
|
||||||
if (child && child.name === 'ul') {
|
if (child.name === 'ul') {
|
||||||
type = dom.getAttribute(child, 'class');
|
type = dom.getAttribute(child, 'class');
|
||||||
if (type) {
|
if (type) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue