diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2015-05-01 03:19:12 +0200 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2015-05-01 03:19:12 +0200 |
commit | df9633cb76c08ab600ded4b3c2b2596edb5ba057 (patch) | |
tree | 76f60adf5f368b1ba934907db4a27389ae243381 /compat53/init.lua | |
parent | 924cdb2a7a6f50688c442e548179a725559572d4 (diff) | |
download | lua-compat-5.3-df9633cb76c08ab600ded4b3c2b2596edb5ba057.tar.gz lua-compat-5.3-df9633cb76c08ab600ded4b3c2b2596edb5ba057.tar.bz2 lua-compat-5.3-df9633cb76c08ab600ded4b3c2b2596edb5ba057.zip |
Fix warnings emitted by luacheck.v0.2
Diffstat (limited to 'compat53/init.lua')
-rw-r--r-- | compat53/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat53/init.lua b/compat53/init.lua index 31085be..b952003 100644 --- a/compat53/init.lua +++ b/compat53/init.lua | |||
@@ -46,7 +46,7 @@ if lua_version == "5.1" then | |||
46 | 46 | ||
47 | 47 | ||
48 | if not is_luajit then | 48 | if not is_luajit then |
49 | local function helper(st, var_1, ...) | 49 | local function helper(_, var_1, ...) |
50 | if var_1 == nil then | 50 | if var_1 == nil then |
51 | if (...) ~= nil then | 51 | if (...) ~= nil then |
52 | error((...), 2) | 52 | error((...), 2) |
@@ -197,7 +197,7 @@ if lua_version == "5.1" then | |||
197 | msg = msg:gsub("%z+", function(zeros) | 197 | msg = msg:gsub("%z+", function(zeros) |
198 | return "\n\t(..."..#zeros.." tail call(s)...)" | 198 | return "\n\t(..."..#zeros.." tail call(s)...)" |
199 | end) | 199 | end) |
200 | msg = msg:gsub("\001", function(zeros) | 200 | msg = msg:gsub("\001", function() |
201 | return "\n\t..." | 201 | return "\n\t..." |
202 | end) | 202 | end) |
203 | return msg | 203 | return msg |