Return mitigation level normal instead of off for no threads

This commit is contained in:
Patrick Pacher 2020-10-08 14:12:52 +02:00
parent 5d901f5f88
commit ea1c91be4e
No known key found for this signature in database
GPG key ID: E8CD2DA160925A6D

View file

@ -49,7 +49,7 @@ func getHighestMitigationLevel() uint8 {
threats.RLock()
defer threats.RUnlock()
var level uint8
var level uint8 = SecurityLevelNormal
for _, lvl := range threats.list {
if lvl > level {
level = lvl