Skip to content

Commit c1ee46c

Browse files
Update dist/avg_dom_depth.js
Co-authored-by: Max Ostapenko <[email protected]>
1 parent 6eaa18c commit c1ee46c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dist/avg_dom_depth.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ function avgDomDepth() {
1212
function numParents(elem) {
1313
var n = 0;
1414
if ( elem.parentNode ) {
15-
/* eslint-disable-next-line no-cond-assign */
16-
while (elem = elem.parentNode) {
15+
while ((elem = elem.parentNode)) {
1716
n++;
1817
}
1918
}

0 commit comments

Comments
 (0)