Small re-factor.
This commit is contained in:
parent
0eea8ac101
commit
00a4c4ebcc
1 changed files with 2 additions and 6 deletions
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue