Clean up extra spread array (#362)

Map [returns a new array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map), so we can just use that result directly, instead of spreading it into a new array!
This commit is contained in:
Josiah
2024-09-20 18:12:43 -04:00
committed by GitHub
parent 3364d3f958
commit bf98f30311
+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = {
continue
}
let values = new Set([...pseudos.map((p) => p.value)])
let values = new Set(pseudos.map((p) => p.value))
// The pseudo elements are not the same
if (values.size > 1) {