core: style nitpick

/cc @fgrehm - I prefer this style. :) No big deal, just pointing it out
This commit is contained in:
Mitchell Hashimoto 2013-11-23 16:39:30 -08:00
parent 1ea39ab605
commit 49b14114a2
1 changed files with 2 additions and 1 deletions

View File

@ -273,9 +273,10 @@ module Vagrant
# #
# @param [Symbol] name Name of the hook. # @param [Symbol] name Name of the hook.
# @param [Action::Runner] action_runner A custom action runner for running hooks. # @param [Action::Runner] action_runner A custom action runner for running hooks.
def hook(name, runner = action_runner) def hook(name, runner=nil)
@logger.info("Running hook: #{name}") @logger.info("Running hook: #{name}")
callable = Action::Builder.new callable = Action::Builder.new
runner ||= action_runner
runner.run( runner.run(
callable, callable,
:action_name => name, :action_name => name,