Skip to content

Commit f95136c

Browse files
committed
Prefer && over and
1 parent efb015f commit f95136c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,8 @@ def target_arch
699699
end
700700

701701
def normalize_platform_arch
702-
c_platform = (target and target.platform) ? target.platform : platform
703-
c_arch = (target and target.arch) ? target.arch : (arch == []) ? nil : arch
702+
c_platform = (target && target.platform) ? target.platform : platform
703+
c_arch = (target && target.arch) ? target.arch : (arch == []) ? nil : arch
704704
c_arch ||= [ ARCH_X86 ]
705705
return c_platform, c_arch
706706
end

0 commit comments

Comments
 (0)