Remove use of map

Fixes #5740
This commit is contained in:
Suyog Rao 2016-08-08 13:17:36 -07:00
parent 53bd15e1f4
commit 47545d6859

View file

@ -19,9 +19,9 @@ class LogStash::PluginManager::Update < LogStash::PluginManager::Command
if local_gems.size > 0
if update_all?
plugins_with_path = local_gems.map(&:name)
plugins_with_path = local_gems
else
plugins_with_path = plugins_arg & local_gems.map(&:name)
plugins_with_path = plugins_arg & local_gems
end
warn_local_gems(plugins_with_path) if plugins_with_path.size > 0