Skip to content

Commit

Permalink
chore: apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Sep 2, 2024
1 parent 661c017 commit bbd437b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/discord.js/src/client/actions/Action.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,7 @@ class GenericAction {
}

spreadInjectedData(data) {
const ret = {};

for (const symbol of Object.getOwnPropertySymbols(data)) {
ret[symbol] = data[symbol];
}

return ret;
return Object.fromEntries(Object.getOwnPropertySymbols(data).map(symbol => [symbol, data[symbol]]));
}
}

Expand Down

0 comments on commit bbd437b

Please sign in to comment.