Skip to content

Commit

Permalink
lib: replace string concatenation with template
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
subbachari authored and fhinkel committed Nov 11, 2017
1 parent 1dba162 commit 97bfeff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/_http_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 97bfeff

Please sign in to comment.