Skip to content

Commit 12e4e0e

Browse files
committed
Return whether result is nil or not.
1 parent dfa9131 commit 12e4e0e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/auxiliary/scanner/http/ntlm_info_enumeration.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ def run_host(ip)
3535
if datastore['TARGETTYPE'] == 'URI'
3636
test_path = normalize_uri(datastore['TARGET'])
3737
result = check_url(test_path)
38-
if result
39-
handle_result(test_path, result)
40-
return
41-
end
38+
handle_result(test_path, result) if result
39+
return
4240
end
4341

4442
File.open(datastore['TARGET'], 'rb').each_line do |line|

0 commit comments

Comments
 (0)