luacheck fixes

This commit is contained in:
Mikayla Fischler 2024-08-21 19:18:55 -04:00
parent 8c6b264f6b
commit a1b6ff4bcc
2 changed files with 6 additions and 7 deletions

View File

@ -824,8 +824,9 @@ end
--#endregion
---@param _self _facility_self
return function (_self)
self = _self
-- link the self instance and return the update interface
---@param fac_self _facility_self
return function (fac_self)
self = fac_self
return update
end

View File

@ -300,10 +300,8 @@ function svsessions.check_rtu_id(unit, list, max)
-- add to the list for the user
if fail_code > 0 and fail_code ~= 3 then
local r_id = unit.get_reactor()
local idx = unit.get_device_idx()
local type = unit.get_unit_type()
local msg = "? (error)"
local r_id, idx, type = unit.get_reactor(), unit.get_device_idx(), unit.get_unit_type()
local msg
if r_id == 0 then
msg = "the facility's "