diff --git a/lib/jenkins_api_client/plugin_manager.rb b/lib/jenkins_api_client/plugin_manager.rb index ff74f121..7894d68a 100644 --- a/lib/jenkins_api_client/plugin_manager.rb +++ b/lib/jenkins_api_client/plugin_manager.rb @@ -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