core: No need to map! here
This commit is contained in:
parent
44d7c6849d
commit
cd2c99972b
|
@ -58,14 +58,14 @@ module Vagrant
|
||||||
raise Errors::BoxRemoveMultiVersion,
|
raise Errors::BoxRemoveMultiVersion,
|
||||||
name: box_name,
|
name: box_name,
|
||||||
provider: box_provider.to_s,
|
provider: box_provider.to_s,
|
||||||
versions: all_versions.sort.map! { |k| " * #{k}" }.join("\n")
|
versions: all_versions.sort.map { |k| " * #{k}" }.join("\n")
|
||||||
end
|
end
|
||||||
elsif !all_versions.include?(box_version)
|
elsif !all_versions.include?(box_version)
|
||||||
raise Errors::BoxRemoveVersionNotFound,
|
raise Errors::BoxRemoveVersionNotFound,
|
||||||
name: box_name,
|
name: box_name,
|
||||||
provider: box_provider.to_s,
|
provider: box_provider.to_s,
|
||||||
version: box_version,
|
version: box_version,
|
||||||
versions: all_versions.sort.map! { |k| " * #{k}" }.join("\n")
|
versions: all_versions.sort.map { |k| " * #{k}" }.join("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
box = env[:box_collection].find(
|
box = env[:box_collection].find(
|
||||||
|
|
Loading…
Reference in New Issue