provisioners/shell: s/unless/if !/

This commit is contained in:
Mitchell Hashimoto 2013-11-29 00:02:20 -08:00
parent 3c06e9458c
commit cfb258a55b
1 changed files with 2 additions and 2 deletions

View File

@ -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