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)
|
||||
local mod_cache, ret_cache = self[1], self[2]
|
||||
local mod, ret = mod_cache[mod_name], ret_cache[mod_name]
|
||||
|
||||
|
||||
if not mod then
|
||||
return require(mod_name)
|
||||
end
|
||||
|
||||
|
||||
if mod and not ret then
|
||||
ret_cache[mod_name] = mod(self)
|
||||
ret = ret_cache[mod_name]
|
||||
end
|
||||
|
||||
|
||||
return ret
|
||||
end, __metatable = false
|
||||
}))
|
||||
Loading…
Reference in New Issue