diff --git a/lib/_http_agent.js b/lib/_http_agent.js index 858e00f0da45e4..6178306f6063ce 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -127,10 +127,10 @@ Agent.prototype.getName = function getName(options) { // Pacify parallel/test-http-agent-getname by only appending // the ':' when options.family is set. if (options.family === 4 || options.family === 6) - name += ':' + options.family; + name += `:${options.family}`; if (options.socketPath) - name += ':' + options.socketPath; + name += `:${options.socketPath}`; return name; };