From 05eec68bfb680817c585e8edcee462bd74b38652 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 24 Jul 2010 09:16:25 -0700 Subject: [PATCH] Unnecessary flatten call, using += instead for array addition --- lib/vagrant/action/box/download.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/vagrant/action/box/download.rb b/lib/vagrant/action/box/download.rb index e132cec10..19b8751ca 100644 --- a/lib/vagrant/action/box/download.rb +++ b/lib/vagrant/action/box/download.rb @@ -13,8 +13,7 @@ module Vagrant @app = app @env = env @env["download.classes"] ||= [] - @env["download.classes"] << [Downloaders::HTTP, Downloaders::File] - @env["download.classes"].flatten! + @env["download.classes"] += [Downloaders::HTTP, Downloaders::File] end def call(env)