Skip to content

Commit a94d078

Browse files
committed
Added the statement return to condition: if res.nil?
1 parent 18ee9af commit a94d078

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/auxiliary/scanner/couchdb/couchdb_enum.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def run
4141

4242
if res.nil?
4343
print_error("No response for #{target_host}")
44+
return nil
4445
end
4546

4647
temp = JSON.parse(res.body)

0 commit comments

Comments
 (0)