From 8215091264d67d81f0da9a13f968b864ff736cb2 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Fri, 5 Jul 2019 12:03:20 -0700 Subject: Style/ClassCheck convert kind_of? to is_a? Signed-off-by: Lamont Granquist --- lib/chef/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/client.rb') diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 37cc7cd6d1..d0d6b0dd4c 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -902,7 +902,7 @@ class Chef end def is_last_element?(index, object) - object.kind_of?(Array) ? index == object.size - 1 : true + object.is_a?(Array) ? index == object.size - 1 : true end def assert_cookbook_path_not_empty(run_context) -- cgit v1.2.1