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

lib: remove unnecessary assignments with _extend #11364

Conversation

thefourtheye
Copy link
Contributor

The first parameter to util._extend is the target object. Assigning
the target object to the result of util._extend is not necessary.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

lib

The first parameter to `util._extend` is the target object. Assigning
the target object to the result of `util._extend` is not necessary.
@nodejs-github-bot nodejs-github-bot added child_process Issues and PRs related to the child_process subsystem. http Issues or PRs related to the http subsystem. tls Issues and PRs related to the tls subsystem. labels Feb 14, 2017
@mscdex
Copy link
Contributor

mscdex commented Feb 14, 2017

@mscdex
Copy link
Contributor

mscdex commented Feb 14, 2017

LGTM

@seishun
Copy link
Contributor

seishun commented Feb 14, 2017

How about replace util._extend with Object.assign?

@ericmdantas
Copy link

@seishun problably not happening because of this: nodejs/CTC#62 (comment)

@thefourtheye
Copy link
Contributor Author

Landed in dce37dc

@thefourtheye thefourtheye deleted the remove-unnecessary-assignment-with-_extend branch February 22, 2017 05:05
thefourtheye added a commit that referenced this pull request Feb 22, 2017
The first parameter to `util._extend` is the target object. Assigning
the target object to the result of `util._extend` is not necessary.

PR-URL: #11364

Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
addaleax pushed a commit that referenced this pull request Feb 22, 2017
The first parameter to `util._extend` is the target object. Assigning
the target object to the result of `util._extend` is not necessary.

PR-URL: #11364

Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
@italoacasas italoacasas mentioned this pull request Feb 25, 2017
@jasnell
Copy link
Member

jasnell commented Mar 7, 2017

this would need a backport PR to land in v6 or v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
child_process Issues and PRs related to the child_process subsystem. http Issues or PRs related to the http subsystem. tls Issues and PRs related to the tls subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants