Skip to content

Commit 96f0421

Browse files
author
kenkeiras
committed
return is not needed when it's the last lifunction line
1 parent c9d8da9 commit 96f0421

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/auxiliary/scanner/ssh/ssh_enumusers.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ def check_user(ip, user, port)
106106
finish_time = Time.new
107107

108108
if finish_time - start_time > threshold
109-
return :success
109+
:success
110110
else
111-
return :fail
111+
:fail
112112
end
113113
end
114114

@@ -125,7 +125,7 @@ def do_report(ip, user, port)
125125

126126

127127
def user_list
128-
return File.new(datastore['USER_FILE']).read.split
128+
File.new(datastore['USER_FILE']).read.split
129129
end
130130

131131

@@ -143,7 +143,7 @@ def attempt_user(user, ip)
143143
ret = check_user(ip, user, rport)
144144
attempt_num += 1
145145
end
146-
return ret
146+
ret
147147
end
148148

149149

0 commit comments

Comments
 (0)