From ea1c91be4e52e0113613b3eb753e3f006470eee8 Mon Sep 17 00:00:00 2001 From: Patrick Pacher Date: Thu, 8 Oct 2020 14:12:52 +0200 Subject: [PATCH] Return mitigation level normal instead of off for no threads --- status/mitigation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status/mitigation.go b/status/mitigation.go index 5d103eb4..bafb66d4 100644 --- a/status/mitigation.go +++ b/status/mitigation.go @@ -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