Skip to content

Conversation

@Ayoub-Mabrouk
Copy link
Contributor

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.

Copy link
Member

@wesleytodd wesleytodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fine change.

…rator

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.
@bjohansebas bjohansebas force-pushed the chore/req-accepteLanguages branch from bfccb74 to 762c3a5 Compare April 11, 2025 01:47
@bjohansebas bjohansebas merged commit 3dc9699 into expressjs:master Apr 11, 2025
23 checks passed
@UlisesGascon UlisesGascon mentioned this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants