mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Clarify an assertion
This commit is contained in:
parent
3a7f446b90
commit
abb0bf663f
1 changed files with 2 additions and 1 deletions
|
|
@ -842,7 +842,8 @@ local function get_chosen_scripts (rules)
|
|||
-- calculate runlevels
|
||||
local name_script = {};
|
||||
for i, script in ipairs(chosen_scripts) do
|
||||
assert(name_script[script.short_basename] == nil);
|
||||
assert(name_script[script.short_basename] == nil,
|
||||
("duplicate script ID: '%s'"):formt(script.short_basename));
|
||||
name_script[script.short_basename] = script;
|
||||
end
|
||||
local chain = {}; -- chain of script names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue