0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Reformat code to new prettier style

This commit is contained in:
Neil Jenkins 2024-07-17 15:26:08 +10:00
parent 4e697df3c7
commit 4156fb11d6
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -24,8 +24,8 @@ class TreeIterator<T extends Node> {
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);
}