Skip to content

Commit ae85d40

Browse files
committed
chore: fix linting errors
1 parent d5770df commit ae85d40

File tree

4 files changed

+1637
-48
lines changed

4 files changed

+1637
-48
lines changed

lib/enoent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function hookChildProcess(cp, parsed) {
3131
}
3232
}
3333

34-
return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
34+
return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
3535
};
3636
}
3737

lib/parse.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function parseNonShell(parsed) {
6161

6262
parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
6363
parsed.command = process.env.comspec || 'cmd.exe';
64-
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
64+
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
6565
}
6666

6767
return parsed;
@@ -80,7 +80,7 @@ function parseShell(parsed) {
8080
if (isWin) {
8181
parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
8282
parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
83-
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
83+
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
8484
} else {
8585
if (typeof parsed.options.shell === 'string') {
8686
parsed.command = parsed.options.shell;

lib/util/readShebang.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const shebangCommand = require('shebang-command');
66
function readShebang(command) {
77
// Read the first 150 bytes from the file
88
const size = 150;
9-
109
let buffer;
10+
1111
if (Buffer.alloc) {
1212
// Node.js v4.5+ / v5.10+
1313
buffer = Buffer.alloc(size);

0 commit comments

Comments
 (0)