stricter luacheck
This commit is contained in:
parent
f84db59985
commit
15e5d91c30
@ -1,4 +1,3 @@
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
|
||||
globals = {
|
||||
|
2
gui.lua
2
gui.lua
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user