diff options
author | Kerri Miller <kerrizor@github.com> | 2017-03-16 19:48:32 -0700 |
---|---|---|
committer | Kerri Miller <kerrizor@github.com> | 2017-03-16 19:48:32 -0700 |
commit | 473c609fdc63d09b0c11f3bab25937ac13393dc6 (patch) | |
tree | 7c52f3e0a2bc045266a41e64e2efe1d449265242 /lib/bundler/plugin.rb | |
parent | 4ab7dfbb2c98f12571763d2c568a2c8a160ffb8d (diff) | |
download | bundler-473c609fdc63d09b0c11f3bab25937ac13393dc6.tar.gz |
.map -> .each, as we are not using return value
Diffstat (limited to 'lib/bundler/plugin.rb')
-rw-r--r-- | lib/bundler/plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 ")}" |