mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
refactor: remove unnecessary spread (#9137)
This commit is contained in:
@@ -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}"}`];
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user