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 --#endregion
---@param _self _facility_self -- link the self instance and return the update interface
return function (_self) ---@param fac_self _facility_self
self = _self return function (fac_self)
self = fac_self
return update return update
end end

View File

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