summaryrefslogtreecommitdiff
path: root/lib/chef/environment.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-05 12:03:20 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-05 12:57:40 -0700
commit8215091264d67d81f0da9a13f968b864ff736cb2 (patch)
tree37b71de99d1190c9c24e63fbbc50610363b7b8d5 /lib/chef/environment.rb
parent7bf98ad06b30b7feb4ea3fbbe45a5b733467a5d3 (diff)
downloadchef-8215091264d67d81f0da9a13f968b864ff736cb2.tar.gz
Style/ClassCheck
convert kind_of? to is_a? Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/environment.rb')
-rw-r--r--lib/chef/environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/environment.rb b/lib/chef/environment.rb
index 476aeb4867..87716410db 100644
--- a/lib/chef/environment.rb
+++ b/lib/chef/environment.rb
@@ -298,7 +298,7 @@ class Chef
end
def self.validate_cookbook_versions(cv)
- return false unless cv.kind_of?(Hash)
+ return false unless cv.is_a?(Hash)
cv.each_value do |version|
return false unless Chef::Environment.validate_cookbook_version(version)