Skip to content

Commit

Permalink
fix: correct object path to mvn and java version
Browse files Browse the repository at this point in the history
Optional chaining operator was forgotten in new analytics path in
lodash.get.
  • Loading branch information
Mila Votradovec committed Jan 31, 2020
1 parent 23cbd4c commit 98a7031
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 @@ -301,12 +301,12 @@ async function assembleLocalPayloads(
analytics.add('pluginName', deps.plugin.name);
const javaVersion = _.get(
deps.plugin,
'meta?.versionBuildInfo?.metaBuildVersion.javaVersion',
'meta.versionBuildInfo.metaBuildVersion.javaVersion',
null,
);
const mvnVersion = _.get(
deps.plugin,
'meta?.versionBuildInfo?.metaBuildVersion.mvnVersion',
'meta.versionBuildInfo.metaBuildVersion.mvnVersion',
null,
);
if (javaVersion) {
Expand Down

0 comments on commit 98a7031

Please sign in to comment.