From 5512b63be41e8dcf5e3d7733245e3f4f56e6c40e Mon Sep 17 00:00:00 2001 From: halfnelson Date: Sat, 21 Nov 2020 16:00:18 +1000 Subject: [PATCH] remove redundant check --- src/compiler/compile/render_dom/wrappers/Element/Attribute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/render_dom/wrappers/Element/Attribute.ts b/src/compiler/compile/render_dom/wrappers/Element/Attribute.ts index e4fce39ae916..9ff5b591e693 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Attribute.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Attribute.ts @@ -68,7 +68,7 @@ export default class AttributeWrapper extends BaseAttributeWrapper { } } - if (this.parent.node.namespace && this.parent.node.namespace == external) { + if (this.parent.node.namespace === external) { // leave attribute case alone for elements in the "external" namespace this.name = this.node.name; this.metadata = this.get_metadata();