lib: replace string concatenation with template

PR-URL: https://github.com/nodejs/node/pull/16923
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
This commit is contained in:
Vijayalakshmi Kannan 2017-11-14 16:02:35 +05:30 committed by Tobias Nießen
parent 0e1abb12e2
commit a0aff57c5a
No known key found for this signature in database
GPG Key ID: 718207F8FD156B70

View File

@ -116,7 +116,7 @@ function ClientRequest(options, cb) {
var path;
if (options.path) {
path = '' + options.path;
path = String(options.path);
var invalidPath;
if (path.length <= 39) { // Determined experimentally in V8 5.4
invalidPath = isInvalidPath(path);