Skip to content

Commit

Permalink
Rename stdioOption to stdio
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 20, 2019
1 parent 21942bb commit f4442d9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/stdio.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ module.exports = normalizeStdio;

// `ipc` is pushed unless it is already present
module.exports.node = opts => {
const stdioOption = normalizeStdio(opts);
const stdio = normalizeStdio(opts);

if (stdioOption === 'ipc') {
if (stdio === 'ipc') {
return 'ipc';
}

if (stdioOption === undefined || typeof stdioOption === 'string') {
return [stdioOption, stdioOption, stdioOption, 'ipc'];
if (stdio === undefined || typeof stdio === 'string') {
return [stdio, stdio, stdio, 'ipc'];
}

if (stdioOption.includes('ipc')) {
return stdioOption;
if (stdio.includes('ipc')) {
return stdio;
}

return [...stdioOption, 'ipc'];
return [...stdio, 'ipc'];
};

0 comments on commit f4442d9

Please sign in to comment.