Removed threshold not nil check

Error due to the fact that an old user script configuration was in use
This commit is contained in:
Matteo Biscosi 2021-02-22 10:23:01 +01:00
parent 69ebe4e1a6
commit 5e7cafd8f7

View file

@ -607,10 +607,6 @@ function alerts_api.checkThresholdAlert(params, alert_type, value, attacker, vic
local alarmed = false
local threshold = threshold_config.threshold or threshold_config.default_contacts
if not value or not threshold then
return
end
local alert = alert_type.new(
params.user_script.key,
value,