mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
cleanup and luacheck fixes
This commit is contained in:
parent
a8071db08e
commit
8924ba4e99
@ -27,9 +27,7 @@ local manifest_path = "https://mikaylafischler.github.io/cc-mek-scada/manifests/
|
|||||||
local repo_path = "http://raw.githubusercontent.com/MikaylaFischler/cc-mek-scada/"
|
local repo_path = "http://raw.githubusercontent.com/MikaylaFischler/cc-mek-scada/"
|
||||||
|
|
||||||
local opts = { ... }
|
local opts = { ... }
|
||||||
local mode = nil
|
local mode, app, target
|
||||||
local app = nil
|
|
||||||
local target = nil
|
|
||||||
local install_manifest = manifest_path .. "main/install_manifest.json"
|
local install_manifest = manifest_path .. "main/install_manifest.json"
|
||||||
|
|
||||||
local function red() term.setTextColor(colors.red) end
|
local function red() term.setTextColor(colors.red) end
|
||||||
@ -85,6 +83,7 @@ local function read_local_manifest()
|
|||||||
return local_ok, local_manifest
|
return local_ok, local_manifest
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- get the manifest from GitHub
|
||||||
local function get_remote_manifest()
|
local function get_remote_manifest()
|
||||||
local response, error = http.get(install_manifest)
|
local response, error = http.get(install_manifest)
|
||||||
if response == nil then
|
if response == nil then
|
||||||
|
@ -159,7 +159,6 @@ function network.nic(modem)
|
|||||||
-- close all channels on the modem
|
-- close all channels on the modem
|
||||||
function public.closeAll()
|
function public.closeAll()
|
||||||
modem.closeAll()
|
modem.closeAll()
|
||||||
|
|
||||||
self.channels = {}
|
self.channels = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user