Unnecessary flatten call, using += instead for array addition
This commit is contained in:
parent
dcd9c2a788
commit
05eec68bfb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue