Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-roth committed Apr 25, 2018
1 parent a348107 commit 8b200d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ function getOptions() {
return;
}

const optPathSpecified = (process.argv.indexOf('--opts') > -1);
const optsPath = optPathSpecified ?
process.argv[process.argv.indexOf('--opts') + 1]
: 'test/mocha.opts';
const optPathSpecified = process.argv.indexOf('--opts') > -1;
const optsPath = optPathSpecified
? process.argv[process.argv.indexOf('--opts') + 1]
: 'test/mocha.opts';

if (optPathSpecified && !fs.existsSync(optsPath)) {
console.error(
`Warning: Could not find specified options file: ${optsPath}
Continuing with default configuration.\n`
);
return;
}

try {
Expand Down

0 comments on commit 8b200d3

Please sign in to comment.