Skip to content

Commit

Permalink
fix: send depgraph as a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
lili2311 committed Jul 1, 2019
1 parent 6cd86de commit aba32fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/snyk-test/run-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ async function runTest(packageManager: SupportedPackageManagers,
}

await spinner(spinnerLbl);
analytics.add('depGraph', depGraph);
analytics.add('isDocker', payload.body && payload.body.docker);
analytics.add('depGraph', !!depGraph);
analytics.add('isDocker', (payload.body && payload.body.docker) || false);
// Type assertion might be a lie, but we are correcting that below
let res = await sendPayload(payload, hasDevDependencies) as LegacyVulnApiResult;
if (depGraph) {
Expand Down

0 comments on commit aba32fa

Please sign in to comment.