Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix functions call with extra parameter #245

Merged
merged 1 commit into from
May 14, 2022
Merged

Conversation

LuisEGR
Copy link
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
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
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.

None yet

3 participants