From 473c609fdc63d09b0c11f3bab25937ac13393dc6 Mon Sep 17 00:00:00 2001 From: Kerri Miller Date: Thu, 16 Mar 2017 19:48:32 -0700 Subject: .map -> .each, as we are not using return value --- lib/bundler/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bundler/plugin.rb') diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb index 263aa96908..8e203823ee 100644 --- a/lib/bundler/plugin.rb +++ b/lib/bundler/plugin.rb @@ -39,7 +39,7 @@ module Bundler rescue PluginError => e if specs specs_to_delete = specs.select {|k, _v| names.include?(k) && !index.commands.values.include?(k) } - specs_to_delete.values.map {|spec| Bundler.rm_rf(spec.full_gem_path) } + specs_to_delete.values.each {|spec| Bundler.rm_rf(spec.full_gem_path) } end Bundler.ui.error "Failed to install plugin #{name}: #{e.message}\n #{e.backtrace.join("\n ")}" -- cgit v1.2.1