mirror of
https://github.com/nmap/nmap.git
synced 2025-12-28 18:39:03 +00:00
Remove trailing whitespace in lua files
Whitespace is not significant, so this should not be a problem. https://secwiki.org/w/Nmap/Code_Standards
This commit is contained in:
@@ -40,7 +40,7 @@ action = function( host, port )
|
||||
local fname, url = stdnse.get_script_args('http-put.file', 'http-put.url')
|
||||
if ( not(fname) or not(url) ) then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
local f = io.open(fname, "r")
|
||||
if ( not(f) ) then
|
||||
@@ -50,7 +50,7 @@ action = function( host, port )
|
||||
f:close()
|
||||
|
||||
local response = http.put(host, port, url, nil, content)
|
||||
|
||||
|
||||
if ( response.status == 200 or response.status == 204 ) then
|
||||
return stdnse.format_output(true, ("%s was successfully created"):format(url))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user