Skip to content

Commit 90bdc77

Browse files
committed
Use literal creation notation
1 parent 2c4caee commit 90bdc77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/post/windows/gather/enum_ad_users_to_wordlist.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run
6464
return
6565
end
6666

67-
wordlist = Hash.new(0)
67+
wordlist = {}
6868
q[:results].each do |result|
6969
result.each do |field|
7070
next unless field.present?
@@ -99,7 +99,7 @@ def run
9999
end # q.each
100100

101101
# build array of words to output sorted on frequency
102-
out = Array.new()
102+
out = []
103103
s = wordlist.sort_by &:last
104104
s.each do |k, v|
105105
if(k.length > 3)

0 commit comments

Comments
 (0)