typo fix: use table.empty instead of table.isempty

This commit is contained in:
2025-10-03 14:42:15 -04:00
parent ac2a1ef1ba
commit 74745108b6

View File

@@ -653,7 +653,7 @@ function bl.unhook(pkg, name, time)
if bl._hooks[pkg][name] then
if not time then
bl._hooks[pkg][name] = nil
if table.isempty(bl._hooks[pkg]) then
if table.empty(bl._hooks[pkg]) then
bl._hooks[pkg] = nil
deactivatePackage(pkg)
end
@@ -663,7 +663,7 @@ function bl.unhook(pkg, name, time)
error('bl.unhook: argument #3: time must be nil or one of '..
'\'before\' \'after\' \'override\'', 2) end
bl._hooks[pkg][name][time] = nil
if table.isempty(bl._hooks[pkg][name]) and table.empty(bl._hooks[pkg]) then
if table.empty(bl._hooks[pkg][name]) and table.empty(bl._hooks[pkg]) then
bl._hooks[pkg] = nil
deactivatePackage(pkg)
end