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 a935806

Browse filesBrowse files
Chandrakalaevanlucas
authored andcommitted
lib: replace string concatenation with template
PR-URL: #16920 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
1 parent 385f658 commit a935806
Copy full SHA for a935806

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎lib/child_process.js‎

Copy file name to clipboardExpand all lines: lib/child_process.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ exports.execFile = function(file /*, args, options, callback*/) {
266266
}
267267

268268
if (args.length !== 0)
269-
cmd += ' ' + args.join(' ');
269+
cmd += ` ${args.join(' ')}`;
270270

271271
if (!ex) {
272272
ex = new Error('Command failed: ' + cmd + '\n' + stderr);
@@ -475,7 +475,7 @@ function normalizeSpawnArguments(file, args, options) {
475475
var envPairs = [];
476476

477477
for (var key in env) {
478-
envPairs.push(key + '=' + env[key]);
478+
envPairs.push(`${key}=${env[key]}`);
479479
}
480480

481481
_convertCustomFds(options);
@@ -570,7 +570,7 @@ function checkExecSyncError(ret, args, cmd) {
570570
var msg = 'Command failed: ';
571571
msg += cmd || args.join(' ');
572572
if (ret.stderr && ret.stderr.length > 0)
573-
msg += '\n' + ret.stderr.toString();
573+
msg += `\n${ret.stderr.toString()}`;
574574
err = new Error(msg);
575575
}
576576
if (err) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.