Small re-factor.

This commit is contained in:
Krzysztof Wilczynski 2011-03-12 23:15:02 +00:00
parent 0eea8ac101
commit 00a4c4ebcc

View file

@ -42,12 +42,8 @@
module Puppet::Parser::Functions
newfunction(:load_vars, :type => :statement) do |arguments|
number_of_arguments = arguments.size
if number_of_arguments < 2
raise(Puppet::ParseError, "Wrong number of arguments " +
"given (#{number_of_arguments} for 2)")
end
raise(Puppet::ParseError, "Wrong number of arguments " +
"given (#{arguments.size} for 2)") if arguments.size < 2
data = {}