Run eslint --fix

This commit is contained in:
John Factotum
2026-03-05 16:36:03 +08:00
parent 1217096245
commit 399248a67a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ const nodeToParts = (node, offset, filter) => {
while (filter && parentNode
&& parentNode !== node.ownerDocument.documentElement
&& filter(parentNode) === NodeFilter.FILTER_SKIP)
parentNode = parentNode.parentNode
parentNode = parentNode.parentNode
const indexed = indexChildNodes(parentNode, filter)
const index = indexed.findIndex(x =>
Array.isArray(x) ? x.some(x => x === node) : x === node)