lib/inspec/utils/object_traversal.rb in inspec-4.7.3 vs lib/inspec/utils/object_traversal.rb in inspec-4.7.18
- old
+ new
@@ -13,9 +13,10 @@
extract_from_hash(key, value)
end
# if there are no more keys, just return the value
return value if keys.first.nil?
+
# if there are more keys, extract more
extract_value(keys.clone, value)
end
private