Skip to content

Commit d33e82e

Browse files
committed
fix status codes
1 parent 2e2bd4d commit d33e82e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
dist/
44
.idea/
5+
*.zip

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ func main() {
7474
status, desc := checkJar(osPathname, nil, 0, 0)
7575
if *mode == "list" {
7676
switch status {
77-
case StatusVulnerable, StatusMaybe:
77+
case StatusVulnerable, StatusMaybe, StatusOld:
7878
atomic.StoreUint32(&hasNotableResults, 1)
7979
}
8080
} else {
8181
switch status {
82-
case StatusVulnerable, StatusMaybe, StatusPatched:
82+
case StatusVulnerable, StatusMaybe, StatusOld, StatusPatched:
8383
atomic.StoreUint32(&hasNotableResults, 1)
8484
}
8585
}

0 commit comments

Comments
 (0)