diff --git a/.luacheckrc b/.luacheckrc index ec6a1d2..cb2a855 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,4 +1,3 @@ -unused_args = false allow_defined_top = true globals = { diff --git a/gui.lua b/gui.lua index e165517..f608b85 100644 --- a/gui.lua +++ b/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 diff --git a/util/channel.lua b/util/channel.lua index 3b5111b..0bd8d19 100644 --- a/util/channel.lua +++ b/util/channel.lua @@ -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