mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
Rectify lint findings
This commit is contained in:
parent
5f5cdfc629
commit
5c84f7f253
1 changed files with 2 additions and 4 deletions
|
|
@ -34,13 +34,11 @@ action = function(host, port)
|
|||
return fail("Failed to create rsync.Helper")
|
||||
end
|
||||
|
||||
local status, err = helper:connect()
|
||||
if ( not(status) ) then
|
||||
if not helper:connect() then
|
||||
return fail("Failed to connect to rsync server")
|
||||
end
|
||||
|
||||
local modules = {}
|
||||
status, modules = helper:listModules()
|
||||
local status, modules = helper:listModules()
|
||||
if ( not(status) ) then
|
||||
return fail("Failed to retrieve a list of modules")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue