From 100abeda2355227470ec928906e6946538a28c26 Mon Sep 17 00:00:00 2001 From: subrahmanya chari p Date: Fri, 10 Nov 2017 12:36:21 +0530 Subject: [PATCH] lib/_http_agent.js : Replace string concatenation with template --- 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 b0e011d40c49e4..5f1e56caeab981 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; };