Prefer && over and

bug/bundler_fix
William Vu 2016-12-21 00:16:33 -06:00
parent efb015facc
commit f95136ce67
1 changed files with 2 additions and 2 deletions

View File

@ -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