From f95136ce6744505d752fc26ea1cd7bf6ddbc673c Mon Sep 17 00:00:00 2001 From: William Vu Date: Wed, 21 Dec 2016 00:16:33 -0600 Subject: [PATCH] Prefer && over and --- lib/msf/core/exploit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/core/exploit.rb b/lib/msf/core/exploit.rb index ad571d08d2..6b05a7f06b 100644 --- a/lib/msf/core/exploit.rb +++ b/lib/msf/core/exploit.rb @@ -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