style nitpick

This commit is contained in:
Mitchell Hashimoto 2013-07-12 16:05:56 +09:00
parent 81550392b0
commit 5f5203559f
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module Vagrant
def initialize(*command)
@options = command.last.is_a?(Hash) ? command.pop : {}
@command = command
@command[0] = Which.which(@command[0]) if !File.file? @command[0]
@command[0] = Which.which(@command[0]) if !File.file?(@command[0])
if !@command[0]
raise Errors::CommandUnavailableWindows, file: command[0] if Platform.windows?
raise Errors::CommandUnavailable, file: command[0]