From a78cbebf4b05b1e2e5844294abf2eba0a82127a4 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Tue, 10 Sep 2024 22:55:54 -0500 Subject: [PATCH] satisfy linter --- lua/src/p0007.lua | 2 +- lua/test.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/src/p0007.lua b/lua/src/p0007.lua index f81cb7a9..5957c49e 100644 --- a/lua/src/p0007.lua +++ b/lua/src/p0007.lua @@ -7,8 +7,8 @@ local primes = loadlib("primes").primes return { solution = function() + local num local idx = 0 - local num = 0 local pgen = primes() repeat diff --git a/lua/test.lua b/lua/test.lua index faacc75c..5ba50e85 100644 --- a/lua/test.lua +++ b/lua/test.lua @@ -1,12 +1,11 @@ function loadlib(...) local libname = select(1, ...) - local fnames = {} local length = select("#", ...) local lib, err = loadfile("src/lib/" .. select(1, ...) .. ".lua") if not lib then - error("Failed to load lib " .. libname .. ": " .. err) + error("Failed to load lib " .. libname .. ": " .. err) end lib = lib()