From 5c84f7f253d376a49bb9446131a5f86a3a7fc3a2 Mon Sep 17 00:00:00 2001 From: nnposter Date: Sat, 22 Aug 2026 23:52:57 +0000 Subject: [PATCH] Rectify lint findings --- scripts/rsync-list-modules.nse | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/rsync-list-modules.nse b/scripts/rsync-list-modules.nse index 0fb1e2a29..e30e3e7e1 100644 --- a/scripts/rsync-list-modules.nse +++ b/scripts/rsync-list-modules.nse @@ -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