Skip to content

Fix functions call with extra parameter#245

Merged
dougwilson merged 1 commit intoexpressjs:masterfrom
LuisEGR:master
May 14, 2022
Merged

Fix functions call with extra parameter#245
dougwilson merged 1 commit intoexpressjs:masterfrom
LuisEGR:master

Conversation

@LuisEGR
Copy link
Copy Markdown
Contributor

@LuisEGR LuisEGR commented Jul 20, 2021

Some functions are being called with "req" as second parameter, but it's not required nor is useful in any way, this does not affect the functionality but this should not be done, javascript allows it but it is a little confusing when reading it.

example:

headers.push(configureCredentials(options, req)); ---> headers.push(configureCredentials(options));

the function is declared this way:
function configureCredentials(options) {...

Copy link
Copy Markdown
Contributor

@dougwilson dougwilson left a comment

Choose a reason for hiding this comment

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

sorry this sat here! lgtm

@dougwilson dougwilson merged commit f038e77 into expressjs:master May 14, 2022
This was referenced Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants