provisioners/shell: s/unless/if !/
This commit is contained in:
parent
3c06e9458c
commit
cfb258a55b
|
@ -55,7 +55,7 @@ module VagrantPlugins
|
||||||
errors << I18n.t("vagrant.provisioners.shell.upload_path_not_set")
|
errors << I18n.t("vagrant.provisioners.shell.upload_path_not_set")
|
||||||
end
|
end
|
||||||
|
|
||||||
unless args_valid?
|
if !args_valid?
|
||||||
errors << I18n.t("vagrant.provisioners.shell.args_bad_type")
|
errors << I18n.t("vagrant.provisioners.shell.args_bad_type")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ module VagrantPlugins
|
||||||
# Args are optional, but if they're provided we only support them as a
|
# Args are optional, but if they're provided we only support them as a
|
||||||
# string or as an array.
|
# string or as an array.
|
||||||
def args_valid?
|
def args_valid?
|
||||||
return true unless args
|
return true if !args
|
||||||
args.is_a?(String) || args.is_a?(Array)
|
args.is_a?(String) || args.is_a?(Array)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue