stricter luacheck

This commit is contained in:
BuckarooBanzay 2020-01-06 12:58:26 +01:00
parent f84db59985
commit 15e5d91c30
3 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
unused_args = false
allow_defined_top = true
globals = {

View File

@ -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

View File

@ -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