Skip to content

Commit 16c6222

Browse files
subbacharievanlucas
authored andcommitted
lib: replace string concatenation with template
PR-URL: #16917 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
1 parent fbec5ec commit 16c6222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/_http_agent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ Agent.prototype.getName = function getName(options) {
127127
// Pacify parallel/test-http-agent-getname by only appending
128128
// the ':' when options.family is set.
129129
if (options.family === 4 || options.family === 6)
130-
name += ':' + options.family;
130+
name += `:${options.family}`;
131131

132132
if (options.socketPath)
133-
name += ':' + options.socketPath;
133+
name += `:${options.socketPath}`;
134134

135135
return name;
136136
};

0 commit comments

Comments
 (0)