Skip to content

Commit

Permalink
stricter luacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay authored and BuckarooBanzay committed Jan 6, 2020
1 parent f84db59 commit 15e5d91
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
unused_args = false
allow_defined_top = true

globals = {
Expand Down
2 changes: 1 addition & 1 deletion gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion util/channel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15e5d91

Please sign in to comment.