Refactor: simplify `acceptsLanguages` implementation using spread operator (#6137)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Refactored `req.acceptsLanguages` to use the spread operator for passing arguments directly to `accept.languages`, eliminating the need for `.apply`. This approach improves readability and streamlines the function call.
authored by Ayoub Mabrouk · committed by GitHub · parent fa40ecf · Browse files · 1 file+2 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+2 added−3 removed
- other:+2 added−3 removed