return unless domains -> return if domains.empty?

bug/bundler_fix
nixawk 2016-02-18 10:26:45 +08:00
parent 15f6992aec
commit 9afe5517f7
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class Metasploit4 < Msf::Auxiliary
domains[subdomain] = ips
end
return unless domains
return if domains.empty?
report_note(
host: domain,
type: 'Yahoo Search Subdomains',
@ -115,7 +115,7 @@ class Metasploit4 < Msf::Auxiliary
print_good("#{dork} subdomain: #{subdomain}")
domains[subdomain] = ip
end
return unless domains
return if domains.empty?
report_note(
host: ip,
type: 'Yahoo Search Subdomains',