summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/removeEmptyContainers.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/svgo/plugins/removeEmptyContainers.js')
-rw-r--r--node_modules/svgo/plugins/removeEmptyContainers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/svgo/plugins/removeEmptyContainers.js b/node_modules/svgo/plugins/removeEmptyContainers.js
index bff3ab9c..03907344 100644
--- a/node_modules/svgo/plugins/removeEmptyContainers.js
+++ b/node_modules/svgo/plugins/removeEmptyContainers.js
@@ -28,7 +28,7 @@ exports.fn = () => {
// remove only empty non-svg containers
if (
node.name === 'svg' ||
- elemsGroups.container.includes(node.name) === false ||
+ !elemsGroups.container.has(node.name) ||
node.children.length !== 0
) {
return;