Skip to content

Commit 78148c7

Browse files
committed
Prefer && instead of and
I think @zeroSteiner's been writing a lot of Python. :-)
1 parent 70bfdf1 commit 78148c7

File tree

1 file changed

+2
-2
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+2
-2
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,9 +1581,9 @@ def cmd_set(*args)
15811581
unless mod.nil?
15821582
if !mod.options.include?('RHOST') && mod.options.include?('RHOSTS')
15831583
warn_rhost = false
1584-
if (mod.exploit? and mod.datastore['PAYLOAD'])
1584+
if mod.exploit? && mod.datastore['PAYLOAD']
15851585
p = framework.payloads.create(mod.datastore['PAYLOAD'])
1586-
warn_rhost = (p and !p.options.include?('RHOST'))
1586+
warn_rhost = (p && !p.options.include?('RHOST'))
15871587
else
15881588
warn_rhost = true
15891589
end

0 commit comments

Comments
 (0)