summaryrefslogtreecommitdiff
path: root/lib/chef/node
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-11-15 14:36:04 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-11-15 14:36:04 -0800
commit9689452421b9cbbb26a5112c29be15c74cbf6014 (patch)
tree86281b997e98515822d7e146a28771d292541bef /lib/chef/node
parente4dbb483b1252a1e861ffaf421317e1e450c3abb (diff)
downloadchef-9689452421b9cbbb26a5112c29be15c74cbf6014.tar.gz
fix Lint/UnifiedInteger cop
believe this becomes necessary for ruby 2.4/3.0 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/node')
-rw-r--r--lib/chef/node/common_api.rb2
1 files changed, 1 insertions, 1 deletions
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?