Skip to content

Commit

Permalink
fix: filter out empty provider statuses from diagnostic message
Browse files Browse the repository at this point in the history
Signed-off-by: Ilona Shishov <[email protected]>
  • Loading branch information
IlonaShishov committed Feb 26, 2024
1 parent b57861f commit 245d86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vulnerability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Recommendation: ${this.provider.resolveDependencyFromReference(dependencyData.re
return this.generateRecommendation(dd);
}
return '';
});
}).filter(message => message !== '');

const message = `${this.provider.resolveDependencyFromReference(this.ref)}\n\n${messages.join('\n\n')}\n`;

Expand Down

0 comments on commit 245d86a

Please sign in to comment.