stricter luacheck
This commit is contained in:
parent
f84db59985
commit
15e5d91c30
@ -1,4 +1,3 @@
|
|||||||
unused_args = false
|
|
||||||
allow_defined_top = true
|
allow_defined_top = true
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
|
2
gui.lua
2
gui.lua
@ -43,7 +43,7 @@ function mail.show_inbox(name)
|
|||||||
local messages = mail.getMessages(name)
|
local messages = mail.getMessages(name)
|
||||||
|
|
||||||
if messages[1] then
|
if messages[1] then
|
||||||
for idx, message in ipairs(messages) do
|
for _, message in ipairs(messages) do
|
||||||
if message.unread then
|
if message.unread then
|
||||||
formspec[#formspec + 1] = ",#FFD700"
|
formspec[#formspec + 1] = ",#FFD700"
|
||||||
else
|
else
|
||||||
|
@ -65,7 +65,7 @@ local function Channel(http, url, cfg)
|
|||||||
extra_headers = post_headers,
|
extra_headers = post_headers,
|
||||||
timeout = timeout,
|
timeout = timeout,
|
||||||
post_data = minetest.write_json(data)
|
post_data = minetest.write_json(data)
|
||||||
}, function(res)
|
}, function()
|
||||||
-- TODO: error-handling
|
-- TODO: error-handling
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user