From 49b14114a243b192fdc9865bc136803142387387 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 23 Nov 2013 16:39:30 -0800 Subject: [PATCH] core: style nitpick /cc @fgrehm - I prefer this style. :) No big deal, just pointing it out --- lib/vagrant/environment.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index dc9dbb631..61942a5b3 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -273,9 +273,10 @@ module Vagrant # # @param [Symbol] name Name of the hook. # @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}") callable = Action::Builder.new + runner ||= action_runner runner.run( callable, :action_name => name,