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

Commit

Permalink
EN-566: Fix linter errors (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukiffer committed Jul 9, 2021
1 parent 22652bc commit dff8d63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const collectors = {
checkov: CheckovCollector,
};

/* eslint-disable complexity */
function parseOptions(): any {
const args = argv as any;
const tool = args._[0];
Expand Down Expand Up @@ -53,7 +54,7 @@ function parseOptions(): any {
}

let webhookUrl = 'https://vm.prod.platform.quantum.security/webhooks/ci';
if (!!process.env.QS_COLLECTOR_WEBHOOK_URL) {
if (process.env.QS_COLLECTOR_WEBHOOK_URL) {
webhookUrl = process.env.QS_COLLECTOR_WEBHOOK_URL;
}
if (args['webhook-url']) {
Expand All @@ -68,6 +69,7 @@ function parseOptions(): any {
webhookUrl,
};
}
/* eslint-enable complexity */

async function main(): Promise<void> {
console.log();
Expand Down

0 comments on commit dff8d63

Please sign in to comment.