mirror of
https://github.com/nmap/nmap.git
synced 2026-02-11 16:06:33 +00:00
Improved some code's efficiency.
This commit is contained in:
@@ -29,13 +29,11 @@ require "stdnse"
|
||||
--@param tab The table to truncate.
|
||||
--@return Truncated, formatted table.
|
||||
local truncate = function(tab)
|
||||
local str = ""
|
||||
str = str .. tab[1] .. "\n"
|
||||
str = str .. tab[2] .. "\n"
|
||||
str = str .. tab[3] .. "\n"
|
||||
str = str .. tab[4] .. "\n"
|
||||
str = str .. tab[5] .. "\n"
|
||||
return str
|
||||
return tab[1] .. "\n" ..
|
||||
tab[2] .. "\n" ..
|
||||
tab[3] .. "\n" ..
|
||||
tab[4] .. "\n" ..
|
||||
tab[5] .. "\n";
|
||||
end
|
||||
|
||||
--- Validates the HTTP response and checks for modifications.
|
||||
|
||||
Reference in New Issue
Block a user