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()