Skip to content

Commit 2942a52

Browse files
authored
Revert "get rid of fixnum|bignum deprecation warning"
1 parent d303fff commit 2942a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/parser/functions/type3x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ 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
2525
raise(Puppet::ParseError, 'type3x(): Unknown type')
2626
end
2727

0 commit comments

Comments
 (0)