1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Correct the test for an empty non-list table. See #2784

This commit is contained in:
nnposter
2024-07-04 02:41:11 +00:00
parent c13fff3d56
commit f4b092259c

View File

@@ -3356,7 +3356,7 @@ Helper =
for _, instance in ipairs(instances) do
output[instance:GetName()] = process_instance(instance)
end
if #output > 0 then
if next(output) then
return outlib.sorted_by_key(output)
end
return nil