Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Appease the linter god
  • Loading branch information
Artoria2e5 committed Jan 11, 2021
commit 46d190b59ff691e37cd3a7e7920597c355b31c69
2 changes: 1 addition & 1 deletion lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ function quoteCmdArg(arg) {
// Batch files have differences in that cmd double-interprets the string,
// but that should not affect us as the result is simply inert to CMD here.
// cf. https://daviddeley.com/autohotkey/parameters/parameters.htm#BATCH
if (arg.indexOf('\n') != -1 || arg.indexOf('\r') != -1) {
if (arg.indexOf('\n') !== -1 || arg.indexOf('\r') !== -1) {
Comment thread
Artoria2e5 marked this conversation as resolved.
Resolved
throw new ERR_INVALID_ARG_VALUE(`arg`, arg,
Comment thread
Artoria2e5 marked this conversation as resolved.
Resolved
'cannot contain newlines for cmd');
}
Expand Down