Skip to content

Commit

Permalink
Remove unneeded condition for stripping emu-metas with nothing to render
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed Dec 10, 2021
1 parent c9324ec commit 1fc793c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class Meta extends Builder {
span.appendChild(node.firstChild);
}
node.replaceWith(span);
} else if (node.parentElement) {
} else {
// Nothing to render, strip it.
node.replaceWith(...node.childNodes);
}
Expand Down

0 comments on commit 1fc793c

Please sign in to comment.