diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 21:00:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-07 21:00:59 +0800 |
commit | 34d32a478bcd066baf49ccf36f5f26a132cbfab8 (patch) | |
tree | b0efdb7103dde9cf5b7f16f3a24886bf555708a7 /test.lua | |
parent | 0618f3793e2687e5e15e9d5a51838d61b306dec5 (diff) | |
download | lua-language-server-34d32a478bcd066baf49ccf36f5f26a132cbfab8.zip |
fix warning
Diffstat (limited to 'test.lua')
-rw-r--r-- | test.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,8 +37,8 @@ local function test(name) local clock = os.clock() print(('测试[%s]...'):format(name)) local originRequire = require - require = function (n, ...) - local v, p = originRequire(n, ...) + require = function (n) + local v, p = originRequire(n) if p and p:find 'test/' then package.loaded[n] = nil end |