Skip to content

Commit 0373156

Browse files
committed
Use unless over if not
1 parent f5a920d commit 0373156

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
@@ -138,7 +138,7 @@ def run
138138
type = details.attributes["type"] || ""
139139
subtype = details.attributes["subtype"] || ""
140140

141-
if not (type =~ /Windows/ or subtype =~ /Windows/)
141+
unless type =~ /Windows/ || subtype =~ /Windows/
142142
# With AS/400 we get some garbage in the domain name even though it doesn't exist
143143
domain_name = ""
144144
end

0 commit comments

Comments
 (0)