forked from your-land-mirror/cmd_eval
fix some luacheck warnings
This commit is contained in:
parent
a80c8eb66b
commit
a493a51f7c
4
init.lua
4
init.lua
@ -116,7 +116,7 @@ oir(radius) -- return iterator for objects around you
|
|||||||
{"<proxy>"},
|
{"<proxy>"},
|
||||||
{
|
{
|
||||||
__index = _G,
|
__index = _G,
|
||||||
__newindex = function(t, k, v)
|
__newindex = function(_t, k, v)
|
||||||
if _G[k] then
|
if _G[k] then
|
||||||
core.chat_send_player(player_name, orange_fmt("* Overwriting global: %s", dump(k)))
|
core.chat_send_player(player_name, orange_fmt("* Overwriting global: %s", dump(k)))
|
||||||
else
|
else
|
||||||
@ -187,7 +187,7 @@ oir(radius) -- return iterator for objects around you
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
__index = function(self, key)
|
__index = function(_self, key)
|
||||||
-- we give warnings on accessing undeclared var because it's likely a typo
|
-- we give warnings on accessing undeclared var because it's likely a typo
|
||||||
local res = rawget(_G, key)
|
local res = rawget(_G, key)
|
||||||
if res == nil then
|
if res == nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user