Delete unnecessary nil comparision

bug/bundler_fix
jvazquez-r7 2014-11-07 20:34:13 -06:00
parent aa1fec7f02
commit b1517e6ace
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class Metasploit3 < Msf::Auxiliary
slid_host_ary = []
doc.elements.each('Details/HostDetails') do |ele|
if ele.attributes["password"] != nil
if ele.attributes["password"]
# If an element doesn't have a password, then we don't care about it.
# Otherwise store the slid and host_id to use later.
slid_host_ary << [ele.attributes["slid"], ele.attributes["host_id"]]