Satisfy formatter

This commit is contained in:
Henrik Giesel 2021-03-25 03:58:55 +01:00 committed by Damien Elmes
parent 861c723ec0
commit 35beebcfa6

View file

@ -30,10 +30,7 @@ function allowNone(element: Element): void {
} }
const allow = (attrs: string[]): FilterMethod => (element: Element): void => const allow = (attrs: string[]): FilterMethod => (element: Element): void =>
filterAttributes( filterAttributes((attributeName: string) => attrs.includes(attributeName), element);
(attributeName: string) => attrs.includes(attributeName),
element
);
function unwrapElement(element: Element): void { function unwrapElement(element: Element): void {
element.replaceWith(...element.childNodes); element.replaceWith(...element.childNodes);