Skip to content

Commit b1517e6

Browse files
committed
Delete unnecessary nil comparision
1 parent aa1fec7 commit b1517e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/gather/eventlog_cred_disclosure.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def run
8484

8585
slid_host_ary = []
8686
doc.elements.each('Details/HostDetails') do |ele|
87-
if ele.attributes["password"] != nil
87+
if ele.attributes["password"]
8888
# If an element doesn't have a password, then we don't care about it.
8989
# Otherwise store the slid and host_id to use later.
9090
slid_host_ary << [ele.attributes["slid"], ele.attributes["host_id"]]

0 commit comments

Comments
 (0)