Skip to content

Commit b20a66e

Browse files
authored
Merge pull request #3 from dev-sec/chris-rock/fix-unsupported-os
return empty array, if the operating is not supported
2 parents 0f08f66 + 1d912f8 commit b20a66e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libraries/windows_updates.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,12 @@ def select_update_mgmt
106106
end
107107

108108
def fetchUpdates
109+
return [] if @update_mgmt.nil?
109110
@update_mgmt.fetchUpdates
110111
end
111112

112113
def hotfixes
114+
return [] if @update_mgmt.nil?
113115
@update_mgmt.hotfixes
114116
end
115117
end

0 commit comments

Comments
 (0)