pushes/harmony: remove unneceessary if

This commit is contained in:
Mitchell Hashimoto 2014-10-29 09:55:43 -07:00 committed by Seth Vargo
parent 81f748347e
commit 913dafd3aa
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ module VagrantPlugins
def execute(uploader)
cmd = []
cmd << "-vcs" if @config.vcs
cmd += @config.include.map { |v| ["-include", v] } if !@config.include.empty?
cmd += @config.exclude.map { |v| ["-exclude", v] } if !@config.exclude.empty?
cmd += @config.include.map { |v| ["-include", v] }
cmd += @config.exclude.map { |v| ["-exclude", v] }
cmd << @config.app
cmd << File.expand_path(@config.dir, @environment.root_path)
Vagrant::Util::SafeExec.exec(uploader, *cmd.flatten)