Skip to content

Commit

Permalink
Remove extraneous paren in message
Browse files Browse the repository at this point in the history
  • Loading branch information
faxm0dem committed Jun 24, 2021
1 parent 04f9ca0 commit 5a4467d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/parser/functions/rrindex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def self._hash_val(string)
raise(Puppet::Error, "rrindex(): `#{string}` is not a String")
end
unless index_max.is_a?(Integer)
raise(Puppet::Error, "rrindex(): index_max `#{index_max}`) should be a FixNum ")
raise(Puppet::Error, "rrindex(): index_max `#{index_max}` should be a FixNum ")
end
unless index_max > 0
raise(Puppet::Error, "rrindex(): index_max `#{index_max}`) should be > 0 ")
raise(Puppet::Error, "rrindex(): index_max `#{index_max}` should be > 0 ")
end

Puppet::Parser::Functions._hash_val(string) % index_max
Expand Down

0 comments on commit 5a4467d

Please sign in to comment.