refactor: remove unnecessary spread (#9137)

This commit is contained in:
Kyle Scully
2024-03-06 09:00:29 -08:00
committed by GitHub
parent 9b4a74715b
commit 440cee1755

View File

@@ -21,7 +21,7 @@ const withExtensions = [
return !!json[key]?.extensions?.length;
})
.flatMap(mime => {
return [...new Set([...json[mime].extensions])].map(ext => {
return [...new Set(json[mime].extensions)].map(ext => {
return [`.{.@"${ext}", all.@"${mime}"}`];
});
})