From 8924ba4e991161e03fcea8157a5cbc3531b3cc3f Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Tue, 27 Jun 2023 19:05:51 -0400 Subject: [PATCH] cleanup and luacheck fixes --- ccmsi.lua | 5 ++--- scada-common/network.lua | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ccmsi.lua b/ccmsi.lua index 1ce1e88..c2018ac 100644 --- a/ccmsi.lua +++ b/ccmsi.lua @@ -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 diff --git a/scada-common/network.lua b/scada-common/network.lua index f0a96e2..dbb3e75 100644 --- a/scada-common/network.lua +++ b/scada-common/network.lua @@ -159,7 +159,6 @@ function network.nic(modem) -- close all channels on the modem function public.closeAll() modem.closeAll() - self.channels = {} end