diff options
author | Sakthipriyan Vairamani (thefourtheye) <thechargingvolcano@gmail.com> | 2017-02-14 07:28:56 +0530 |
---|---|---|
committer | Sakthipriyan Vairamani (thefourtheye) <thechargingvolcano@gmail.com> | 2017-02-22 10:35:25 +0530 |
commit | dce37dc35b48f1de9f69e11e68deae73a20b6c7a (patch) | |
tree | 33617e198e76b306832b8133072fd2859248b50c /lib/_tls_wrap.js | |
parent | 2b5d83d4df4b9b068ebb4dfc5532ffab2a99a00c (diff) | |
download | android-node-v8-dce37dc35b48f1de9f69e11e68deae73a20b6c7a.tar.gz android-node-v8-dce37dc35b48f1de9f69e11e68deae73a20b6c7a.tar.bz2 android-node-v8-dce37dc35b48f1de9f69e11e68deae73a20b6c7a.zip |
lib: remove unnecessary assignments with _extend
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'lib/_tls_wrap.js')
-rw-r--r-- | lib/_tls_wrap.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index a2236ef17c..394a34c51c 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -978,9 +978,9 @@ function normalizeConnectArgs(listArgs) { // the host/port/path args that it knows about, not the tls options. // This means that options.host overrides a host arg. if (listArgs[1] !== null && typeof listArgs[1] === 'object') { - options = util._extend(options, listArgs[1]); + util._extend(options, listArgs[1]); } else if (listArgs[2] !== null && typeof listArgs[2] === 'object') { - options = util._extend(options, listArgs[2]); + util._extend(options, listArgs[2]); } return (cb) ? [options, cb] : [options]; |