Skip to content

Commit

Permalink
WIP: fix the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Oct 29, 2019
1 parent 5e1fe79 commit a93336e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/scanner/Scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,12 @@ export class Scanner {
: console.log(util.inspect(reportString, { showHidden: false, depth: null }));

const notPracticingPracticesToFail = reportArguments.filter(
(practice) => practice.evaluation === PracticeEvaluationResult.notPracticing && (practice.impact === this.argumentsProvider.fail || this.argumentsProvider.fail === "all"),
(practice) =>
practice.evaluation === PracticeEvaluationResult.notPracticing &&
(practice.impact === this.argumentsProvider.fail || this.argumentsProvider.fail === 'all'),
);

if (notPracticingPracticesToFail.length > 0 || this.argumentsProvider.fail === 'all') {
if (notPracticingPracticesToFail.length > 0) {
process.exit(1);
}
}
Expand Down

0 comments on commit a93336e

Please sign in to comment.