Insert break statements into switch

This commit is contained in:
Henrik Giesel 2021-03-25 00:14:21 +01:00 committed by Damien Elmes
parent 39aa549ac9
commit 730dfdd527

View File

@ -21,12 +21,14 @@ 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
// do nothing
}
};