Skip to content

Commit f7f62bd

Browse files
committed
lib: replace string concatenation with template
1 parent 4e769a8 commit f7f62bd

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)