From 9689452421b9cbbb26a5112c29be15c74cbf6014 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 15 Nov 2016 14:36:04 -0800 Subject: fix Lint/UnifiedInteger cop believe this becomes necessary for ruby 2.4/3.0 Signed-off-by: Lamont Granquist --- lib/chef/node/common_api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/node/common_api.rb') diff --git a/lib/chef/node/common_api.rb b/lib/chef/node/common_api.rb index 9bb83a5178..c9786807e9 100644 --- a/lib/chef/node/common_api.rb +++ b/lib/chef/node/common_api.rb @@ -24,7 +24,7 @@ class Chef # method-style access to attributes def valid_container?(obj, key) - return obj.is_a?(Hash) || (obj.is_a?(Array) && key.is_a?(Fixnum)) + return obj.is_a?(Hash) || (obj.is_a?(Array) && key.is_a?(Integer)) end private :valid_container? -- cgit v1.2.1