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
|
||||
@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)
|
||||
|
|
Loading…
Reference in New Issue