Skip to content

Commit a45bf80

Browse files
committed
temp workaround to test adhoc
1 parent b92d40f commit a45bf80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/puppet/parser/functions/type3x.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ module Puppet::Parser::Functions
2121

2222
klass = value.class
2323

24-
unless %w[TrueClass FalseClass Array Bignum Fixnum Float Hash String].include?(klass.to_s)
24+
unless [TrueClass, FalseClass, Array, Bignum, Fixnum, Float, Hash, String].include?(klass) # rubocop:disable Lint/UnifiedInteger
25+
2526
raise(Puppet::ParseError, 'type3x(): Unknown type')
2627
end
2728

0 commit comments

Comments
 (0)