Skip to content
Snippets Groups Projects
Commit 15e5d91c authored by BuckarooBanzay's avatar BuckarooBanzay
Browse files

stricter luacheck

parent f84db599
Branches
No related tags found
No related merge requests found
unused_args = false
allow_defined_top = true
globals = {
......
......@@ -43,7 +43,7 @@ function mail.show_inbox(name)
local messages = mail.getMessages(name)
if messages[1] then
for idx, message in ipairs(messages) do
for _, message in ipairs(messages) do
if message.unread then
formspec[#formspec + 1] = ",#FFD700"
else
......
......@@ -65,7 +65,7 @@ local function Channel(http, url, cfg)
extra_headers = post_headers,
timeout = timeout,
post_data = minetest.write_json(data)
}, function(res)
}, function()
-- TODO: error-handling
end)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment