Insert break statements into switch
This commit is contained in:
parent
39aa549ac9
commit
730dfdd527
@ -21,10 +21,12 @@ export const filterNode = (elementFilter: (element: Element) => void) => (
|
||||
|
||||
case Node.DOCUMENT_FRAGMENT_NODE:
|
||||
iterateElement(filterNode(elementFilter), node as DocumentFragment);
|
||||
break;
|
||||
|
||||
case Node.ELEMENT_NODE:
|
||||
iterateElement(filterNode(elementFilter), node as Element);
|
||||
elementFilter(node as Element);
|
||||
break;
|
||||
|
||||
default:
|
||||
// do nothing
|
||||
|
Loading…
Reference in New Issue
Block a user