cleanup and luacheck fixes

This commit is contained in:
Mikayla Fischler 2023-06-27 19:05:51 -04:00
parent a8071db08e
commit 8924ba4e99
2 changed files with 2 additions and 4 deletions

View File

@ -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 opts = { ... }
local mode = nil
local app = nil
local target = nil
local mode, app, target
local install_manifest = manifest_path .. "main/install_manifest.json"
local function red() term.setTextColor(colors.red) end
@ -85,6 +83,7 @@ local function read_local_manifest()
return local_ok, local_manifest
end
-- get the manifest from GitHub
local function get_remote_manifest()
local response, error = http.get(install_manifest)
if response == nil then

View File

@ -159,7 +159,6 @@ function network.nic(modem)
-- close all channels on the modem
function public.closeAll()
modem.closeAll()
self.channels = {}
end