mirror of
https://github.com/zoriya/lz.n.git
synced 2026-06-03 11:05:42 +00:00
tests(handlers/keys): ensure plugins are only loaded once
This commit is contained in:
@@ -133,4 +133,11 @@ function M.add(plugin)
|
||||
end
|
||||
end
|
||||
|
||||
---@param plugin LzPlugin
|
||||
function M.del(plugin)
|
||||
for _, plugins in pairs(M.pending) do
|
||||
plugins[plugin.name] = nil
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user