Skip to content

Commit 1d912f8

Browse files
committed
return empty array, if the operating is not supported
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
1 parent 0f08f66 commit 1d912f8

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)