Prefer && over and
parent
efb015facc
commit
f95136ce67
|
@ -699,8 +699,8 @@ class Exploit < Msf::Module
|
|||
end
|
||||
|
||||
def normalize_platform_arch
|
||||
c_platform = (target and target.platform) ? target.platform : platform
|
||||
c_arch = (target and target.arch) ? target.arch : (arch == []) ? nil : arch
|
||||
c_platform = (target && target.platform) ? target.platform : platform
|
||||
c_arch = (target && target.arch) ? target.arch : (arch == []) ? nil : arch
|
||||
c_arch ||= [ ARCH_X86 ]
|
||||
return c_platform, c_arch
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue