summaryrefslogtreecommitdiff
path: root/test.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-07 21:00:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-07 21:00:59 +0800
commit34d32a478bcd066baf49ccf36f5f26a132cbfab8 (patch)
treeb0efdb7103dde9cf5b7f16f3a24886bf555708a7 /test.lua
parent0618f3793e2687e5e15e9d5a51838d61b306dec5 (diff)
downloadlua-language-server-34d32a478bcd066baf49ccf36f5f26a132cbfab8.zip
fix warning
Diffstat (limited to 'test.lua')
-rw-r--r--test.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.lua b/test.lua
index e255841f..3f6eb73c 100644
--- a/test.lua
+++ b/test.lua
@@ -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