From 4156fb11d676061b607bba6b457e92476d43fa9f Mon Sep 17 00:00:00 2001 From: Neil Jenkins Date: Wed, 17 Jul 2024 15:26:08 +1000 Subject: [PATCH] Reformat code to new prettier style --- source/node/Node.ts | 4 ++-- source/node/TreeIterator.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/node/Node.ts b/source/node/Node.ts index b126f10..0a0b175 100644 --- a/source/node/Node.ts +++ b/source/node/Node.ts @@ -116,8 +116,8 @@ const getLength = (node: Node): number => { return node instanceof Element || node instanceof DocumentFragment ? node.childNodes.length : node instanceof CharacterData - ? node.length - : 0; + ? node.length + : 0; }; // --- Manipulation diff --git a/source/node/TreeIterator.ts b/source/node/TreeIterator.ts index 37c2550..b6c095c 100644 --- a/source/node/TreeIterator.ts +++ b/source/node/TreeIterator.ts @@ -24,8 +24,8 @@ class TreeIterator { nodeType === Node.ELEMENT_NODE ? SHOW_ELEMENT : nodeType === Node.TEXT_NODE - ? SHOW_TEXT - : 0; + ? SHOW_TEXT + : 0; return !!(nodeFilterType & this.nodeType) && this.filter(node as T); }