Skip to content

Commit

Permalink
Switch from filter to find
Browse files Browse the repository at this point in the history
  • Loading branch information
Reamer committed Mar 8, 2020
1 parent 375bfaa commit 7881290
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function findDependencyCheckReport(options) {
component : options.component.key,
metricKeys : "report"
}).then(function(response) {
var report = response.component.measures.filter(measure => measure.metric === "report")[0];
var report = response.component.measures.find(measure => measure.metric === "report");
if (report !== undefined) {
return report.value
} else {
Expand Down

0 comments on commit 7881290

Please sign in to comment.