lib/chef/cookbook/cookbook_version_loader.rb in chef-10.16.6 vs lib/chef/cookbook/cookbook_version_loader.rb in chef-10.18.0.rc.1
- old
+ new
@@ -102,12 +102,10 @@
end
@metadata
end
def empty?
- cookbook_settings.inject(true) do |all_empty, files|
- all_empty && files.last.empty?
- end
+ @cookbook_settings.values.all? { |files_hash| files_hash.empty? }
end
def merge!(other_cookbook_loader)
other_cookbook_settings = other_cookbook_loader.cookbook_settings
@cookbook_settings.each do |file_type, file_list|