Skip to content

Commit 69f3d88

Browse files
committed
Ensure uniq on #find_msb_numbers
1 parent b107213 commit 69f3d88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/tools/msu_finder_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require 'nokogiri'
44
require 'uri'
55

6-
describe MicrosoftPatch do
6+
describe MicrosoftPatchFinder do
77

88
before(:each) do
99
cli = Rex::Proto::Http::Client.new('127.0.0.1')

tools/msu_finder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def find_msb_numbers(keyword)
435435
end
436436
rescue RuntimeError => e
437437
print_error(e.message)
438-
return msb_numbers
438+
return msb_numbers.uniq
439439
end
440440

441441
msb_numbers.uniq

0 commit comments

Comments
 (0)