diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2015-11-17 15:49:12 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2015-11-23 13:57:21 +0100 |
commit | 32ecd75a16371fcfbe0cfc25eacaf041a755ac03 (patch) | |
tree | 80e848ba25993d30caa8556bbde6d7638e1d5ad9 /test/unit/helpers.lua | |
parent | 4afd386276bb3c8cebb138b96e16c2b45de003ba (diff) | |
download | rneovim-32ecd75a16371fcfbe0cfc25eacaf041a755ac03.tar.gz rneovim-32ecd75a16371fcfbe0cfc25eacaf041a755ac03.tar.bz2 rneovim-32ecd75a16371fcfbe0cfc25eacaf041a755ac03.zip |
test/unit: clean up according to luacheck
Diffstat (limited to 'test/unit/helpers.lua')
-rw-r--r-- | test/unit/helpers.lua | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index 5bcc661226..7b43b2218c 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -18,17 +18,9 @@ local function trim(s) end -- a Set that keeps around the lines we've already seen -if cdefs == nil then - cdefs = Set:new() -end - -if imported == nil then - imported = Set:new() -end - -if pragma_pack_id == nil then - pragma_pack_id = 1 -end +local cdefs = Set:new() +local imported = Set:new() +local pragma_pack_id = 1 -- some things are just too complex for the LuaJIT C parser to digest. We -- usually don't need them anyway. @@ -67,7 +59,7 @@ local function cimport(...) end local body = nil - for i=1, 10 do + for _ = 1, 10 do local stream = Preprocess.preprocess_stream(unpack(paths)) body = stream:read("*a") stream:close() |