From 245d86a08772473abe70b96ac05d6615b5fd891b Mon Sep 17 00:00:00 2001 From: Ilona Shishov Date: Mon, 26 Feb 2024 13:04:12 +0200 Subject: [PATCH] fix: filter out empty provider statuses from diagnostic message Signed-off-by: Ilona Shishov --- src/vulnerability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulnerability.ts b/src/vulnerability.ts index 299502b9..48e4c2e1 100644 --- a/src/vulnerability.ts +++ b/src/vulnerability.ts @@ -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`;