Skip to content

Commit

Permalink
Merge pull request #136 from sunaot/stop-warning
Browse files Browse the repository at this point in the history
Prevent warnings due to Hash#[] call with nil items
  • Loading branch information
arangamani committed May 12, 2014
2 parents 964bc30 + 44733db commit 6e7a836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jenkins_api_client/plugin_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def list_installed(filters = {})
if filters.keys.all? { |key| plugin[key.to_s] == filters[key] }
[plugin["shortName"], plugin["version"]]
end
end]
end.compact]
installed
end

Expand Down

0 comments on commit 6e7a836

Please sign in to comment.