Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Dec 14, 2022
1 parent 563c662 commit e75906b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/jsx2/src/util/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export const NS_SVG = 1;
export type NS = typeof NS_HTML | typeof NS_SVG;

export function nsFromNode(node: Node): NS {
return childSpace((node as any).namespaceURI === DOM_SVG_NAMESPACE ? NS_SVG : NS_HTML, node.nodeName);
return childSpace(
(node as any).namespaceURI === DOM_SVG_NAMESPACE ? NS_SVG : NS_HTML,
node.nodeName,
);
}

export function childSpace(ns: NS, nodeName: string): NS {
Expand Down

0 comments on commit e75906b

Please sign in to comment.