Skip to content

Commit

Permalink
satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 11, 2024
1 parent 0886526 commit a78cbeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/src/p0007.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ local primes = loadlib("primes").primes

return {
solution = function()
local num
local idx = 0
local num = 0
local pgen = primes()

repeat
Expand Down
3 changes: 1 addition & 2 deletions lua/test.lua
Original file line number Diff line number Diff line change
@@ -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()

Expand Down

0 comments on commit a78cbeb

Please sign in to comment.