From e64db59e4ec85c8e4eac6b3068aeebb6c1bad69c Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 9 Feb 2024 14:36:24 +0100 Subject: [PATCH] chore(askalono): Allow results and errors both to be present Maybe not all errors imply no results to be present, so be on the safe side and allow both to be present. Signed-off-by: Sebastian Schuberth --- plugins/scanners/askalono/src/main/kotlin/Askalono.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/scanners/askalono/src/main/kotlin/Askalono.kt b/plugins/scanners/askalono/src/main/kotlin/Askalono.kt index 466ff59775feb..755c0ebf6b873 100644 --- a/plugins/scanners/askalono/src/main/kotlin/Askalono.kt +++ b/plugins/scanners/askalono/src/main/kotlin/Askalono.kt @@ -103,7 +103,9 @@ class Askalono internal constructor(name: String, private val wrapperConfig: Sca location = TextLocation(it.path, TextLocation.UNKNOWN_LINE), score = it.result.score ) - } else if (it.error != null) { + } + + if (it.error != null) { issues += Issue( source = name, message = it.error,