addressed luacheck warning

This commit is contained in:
Mikayla Fischler 2023-12-29 14:29:46 -05:00
parent 363f164f47
commit 338b3b1615

View File

@ -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)