From cfb258a55bccc448d5cb7626c2792e3cc768eaa2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 29 Nov 2013 00:02:20 -0800 Subject: [PATCH] provisioners/shell: s/unless/if !/ --- plugins/provisioners/shell/config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/provisioners/shell/config.rb b/plugins/provisioners/shell/config.rb index df1a06a6b..931fadd14 100644 --- a/plugins/provisioners/shell/config.rb +++ b/plugins/provisioners/shell/config.rb @@ -55,7 +55,7 @@ module VagrantPlugins errors << I18n.t("vagrant.provisioners.shell.upload_path_not_set") end - unless args_valid? + if !args_valid? errors << I18n.t("vagrant.provisioners.shell.args_bad_type") end @@ -65,7 +65,7 @@ module VagrantPlugins # Args are optional, but if they're provided we only support them as a # string or as an array. def args_valid? - return true unless args + return true if !args args.is_a?(String) || args.is_a?(Array) end