Skip to content

Commit

Permalink
chore(scanner): Get the time for a failure summary only once
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Sep 26, 2024
1 parent cd70325 commit 9fa1666
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scanner/src/main/kotlin/Scanner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,10 @@ class Scanner(
"Downloader", "Could not download provenance $provenance: ${e.collectMessages()}"
)

val time = Instant.now()
val summary = ScanSummary(
startTime = Instant.now(),
endTime = Instant.now(),
startTime = time,
endTime = time,
issues = listOf(issue)
)

Expand Down

0 comments on commit 9fa1666

Please sign in to comment.