mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
luacheck fixes
This commit is contained in:
parent
8c6b264f6b
commit
a1b6ff4bcc
@ -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
|
||||
|
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user