We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d303fff commit 2942a52Copy full SHA for 2942a52
lib/puppet/parser/functions/type3x.rb
@@ -21,7 +21,7 @@ module Puppet::Parser::Functions
21
22
klass = value.class
23
24
- unless %w[TrueClass FalseClass Array Bignum Fixnum Float Hash String].include?(klass.to_s)
+ unless [TrueClass, FalseClass, Array, Bignum, Fixnum, Float, Hash, String].include?(klass) # rubocop:disable Lint/UnifiedInteger
25
raise(Puppet::ParseError, 'type3x(): Unknown type')
26
end
27
0 commit comments