Skip to content

Commit

Permalink
chore(askalono): Allow results and errors both to be present
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sschuberth committed Feb 9, 2024
1 parent 9bab90a commit e64db59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/scanners/askalono/src/main/kotlin/Askalono.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e64db59

Please sign in to comment.