From 134c2f31f27f8eaf85ef8517de115ddcbb778c2f Mon Sep 17 00:00:00 2001 From: subrahmanya chari p Date: Fri, 10 Nov 2017 12:36:21 +0530 Subject: [PATCH] lib: replace string concatenation with template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/16917 Reviewed-By: James M Snell Reviewed-By: Daniel Bevenius Reviewed-By: Tobias Nießen Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Franziska Hinkelmann --- lib/_http_agent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; };