Prefer && instead of and

I think @zeroSteiner's been writing a lot of Python. :-)
bug/bundler_fix
William Vu 2017-05-14 22:18:25 -05:00
parent 70bfdf17b2
commit 78148c7979
1 changed files with 2 additions and 2 deletions

View File

@ -1581,9 +1581,9 @@ class Core
unless mod.nil?
if !mod.options.include?('RHOST') && mod.options.include?('RHOSTS')
warn_rhost = false
if (mod.exploit? and mod.datastore['PAYLOAD'])
if mod.exploit? && mod.datastore['PAYLOAD']
p = framework.payloads.create(mod.datastore['PAYLOAD'])
warn_rhost = (p and !p.options.include?('RHOST'))
warn_rhost = (p && !p.options.include?('RHOST'))
else
warn_rhost = true
end