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:
parent
4e697df3c7
commit
4156fb11d6
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue