From 338b3b161500f9a383699ac532c30e5307d1feca Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Fri, 29 Dec 2023 14:29:46 -0500 Subject: [PATCH] addressed luacheck warning --- supervisor/configure.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supervisor/configure.lua b/supervisor/configure.lua index 5a48610..c7fe5f2 100644 --- a/supervisor/configure.lua +++ b/supervisor/configure.lua @@ -361,7 +361,8 @@ local function config_view(display) tmp_cfg.FacilityTankDefs = {} for i = 1, tmp_cfg.UnitCount do - local def = tmp_cfg.FacilityTankDefs[i] + local def + if tmp_cfg.CoolingConfig[i].TankConnection then def = tool_ctl.tank_elems[i].tank_opt.get_value() any_fac = any_fac or (def == 2)