Skip to content

Commit 1a8b0e9

Browse files
VijiKannanMylesBorins
authored andcommitted
lib: replace string concatenation with template
PR-URL: #16923 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]>
1 parent 03803ee commit 1a8b0e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_http_client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function ClientRequest(options, cb) {
116116

117117
var path;
118118
if (options.path) {
119-
path = '' + options.path;
119+
path = String(options.path);
120120
var invalidPath;
121121
if (path.length <= 39) { // Determined experimentally in V8 5.4
122122
invalidPath = isInvalidPath(path);

0 commit comments

Comments
 (0)