Unnecessary flatten call, using += instead for array addition

This commit is contained in:
Mitchell Hashimoto 2010-07-24 09:16:25 -07:00
parent dcd9c2a788
commit 05eec68bfb
1 changed files with 1 additions and 2 deletions

View File

@ -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)