Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 134c2f3

Browse filesBrowse files
subbachariMylesBorins
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 ae7106c commit 134c2f3
Copy full SHA for 134c2f3

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/_http_agent.js‎

Copy file name to clipboardExpand all lines: lib/_http_agent.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.