From cd2c99972b101d9dcf0476deb41b418d498fcff4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 11 Apr 2014 09:32:25 -0700 Subject: [PATCH] core: No need to map! here --- lib/vagrant/action/builtin/box_remove.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/action/builtin/box_remove.rb b/lib/vagrant/action/builtin/box_remove.rb index d03fe7b47..51c600297 100644 --- a/lib/vagrant/action/builtin/box_remove.rb +++ b/lib/vagrant/action/builtin/box_remove.rb @@ -58,14 +58,14 @@ module Vagrant raise Errors::BoxRemoveMultiVersion, name: box_name, provider: box_provider.to_s, - versions: all_versions.sort.map! { |k| " * #{k}" }.join("\n") + versions: all_versions.sort.map { |k| " * #{k}" }.join("\n") end elsif !all_versions.include?(box_version) raise Errors::BoxRemoveVersionNotFound, name: box_name, provider: box_provider.to_s, version: box_version, - versions: all_versions.sort.map! { |k| " * #{k}" }.join("\n") + versions: all_versions.sort.map { |k| " * #{k}" }.join("\n") end box = env[:box_collection].find(