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 @app = app
@env = env @env = env
@env["download.classes"] ||= [] @env["download.classes"] ||= []
@env["download.classes"] << [Downloaders::HTTP, Downloaders::File] @env["download.classes"] += [Downloaders::HTTP, Downloaders::File]
@env["download.classes"].flatten!
end end
def call(env) def call(env)