summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/removeUnknownsAndDefaults.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/svgo/plugins/removeUnknownsAndDefaults.js')
-rw-r--r--node_modules/svgo/plugins/removeUnknownsAndDefaults.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/svgo/plugins/removeUnknownsAndDefaults.js b/node_modules/svgo/plugins/removeUnknownsAndDefaults.js
index 7462e8dc..e76e4e5f 100644
--- a/node_modules/svgo/plugins/removeUnknownsAndDefaults.js
+++ b/node_modules/svgo/plugins/removeUnknownsAndDefaults.js
@@ -129,7 +129,7 @@ exports.fn = (root, params) => {
// remove unknown element's content
if (unknownContent && parentNode.type === 'element') {
const allowedChildren = allowedChildrenPerElement.get(
- parentNode.name
+ parentNode.name,
);
if (allowedChildren == null || allowedChildren.size === 0) {
// remove unknown elements
@@ -197,7 +197,7 @@ exports.fn = (root, params) => {
if (uselessOverrides && node.attributes.id == null) {
const style = computedParentStyle?.[name];
if (
- presentationNonInheritableGroupAttrs.includes(name) === false &&
+ presentationNonInheritableGroupAttrs.has(name) === false &&
style != null &&
style.type === 'static' &&
style.value === value