Skip to content

Commit

Permalink
return empty array, if the operating is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Sep 27, 2016
1 parent 0f08f66 commit 77e6c5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/windows_updates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,12 @@ def select_update_mgmt
end

def fetchUpdates
return [] if @update_mgmt.nil?
@update_mgmt.fetchUpdates
end

def hotfixes
return [] if @update_mgmt.nil?
@update_mgmt.hotfixes
end
end
Expand Down

0 comments on commit 77e6c5c

Please sign in to comment.