mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Improved some code's efficiency.
This commit is contained in:
parent
8ae512478a
commit
ca2d116e2b
1 changed files with 5 additions and 7 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue