Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix: prevents generating report file if there are no inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Apr 8, 2020
1 parent 34cc99c commit 2804130
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cli/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ const process = async () => {
};

const exportContainsInconsistencies = (projectReport: ProjectContracts.IProjectReportResponseContract) => {
const projectHasIssues = projectReport.variant_issues.length > 0 || projectReport.type_issues.length > 0;
if (!projectHasIssues) {
if (projectReport.variant_issues.length > 0 || projectReport.type_issues.length > 0) {
return true;
}

Expand Down

0 comments on commit 2804130

Please sign in to comment.