From eae9a7b956a4050caeacb58b6f6176087f3c2b0a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 13 Jul 2022 11:31:44 +0200 Subject: check-health: update initialization of empty array Having the parenthesis here is important for valid syntax! --- check-health | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'check-health') diff --git a/check-health b/check-health index 903c496..5da7d2a 100644 --- a/check-health +++ b/check-health @@ -35,10 +35,10 @@ } :if ([ :typeof $CheckHealthLast ] != "array") do={ - :set CheckHealthLast [ :toarray "" ]; + :set CheckHealthLast ({}); } :if ([ :typeof $CheckHealthTemperatureNotified ] != "array") do={ - :set CheckHealthTemperatureNotified [ :toarray "" ]; + :set CheckHealthTemperatureNotified ({}); } $ScriptLock $0; -- cgit v1.2.3-70-g09d2