Skip to content

Commit 16c6222

Browse files
subbacharievanlucas
authored andcommitted
lib: replace string concatenation with template
PR-URL: #16917 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
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)