fix: extra spaces in wrapper
This commit is contained in:
parent
e42465c914
commit
035061056a
|
|
@ -8,16 +8,16 @@ end)(setmetatable({
|
||||||
__call = function(self, mod_name)
|
__call = function(self, mod_name)
|
||||||
local mod_cache, ret_cache = self[1], self[2]
|
local mod_cache, ret_cache = self[1], self[2]
|
||||||
local mod, ret = mod_cache[mod_name], ret_cache[mod_name]
|
local mod, ret = mod_cache[mod_name], ret_cache[mod_name]
|
||||||
|
|
||||||
if not mod then
|
if not mod then
|
||||||
return require(mod_name)
|
return require(mod_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
if mod and not ret then
|
if mod and not ret then
|
||||||
ret_cache[mod_name] = mod(self)
|
ret_cache[mod_name] = mod(self)
|
||||||
ret = ret_cache[mod_name]
|
ret = ret_cache[mod_name]
|
||||||
end
|
end
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
end, __metatable = false
|
end, __metatable = false
|
||||||
}))
|
}))
|
||||||
Loading…
Reference in New Issue