Skip to content

Commit 5512b63

Browse files
committed
remove redundant check
1 parent 95ca937 commit 5512b63

File tree

1 file changed

+1
-1
lines changed
  • src/compiler/compile/render_dom/wrappers/Element

1 file changed

+1
-1
lines changed

src/compiler/compile/render_dom/wrappers/Element/Attribute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class AttributeWrapper extends BaseAttributeWrapper {
6868
}
6969
}
7070

71-
if (this.parent.node.namespace && this.parent.node.namespace == external) {
71+
if (this.parent.node.namespace === external) {
7272
// leave attribute case alone for elements in the "external" namespace
7373
this.name = this.node.name;
7474
this.metadata = this.get_metadata();

0 commit comments

Comments
 (0)