summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook/manifest_v0.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/cookbook/manifest_v0.rb')
-rw-r--r--lib/chef/cookbook/manifest_v0.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/cookbook/manifest_v0.rb b/lib/chef/cookbook/manifest_v0.rb
index a4c60e5827..4edf5d3dd2 100644
--- a/lib/chef/cookbook/manifest_v0.rb
+++ b/lib/chef/cookbook/manifest_v0.rb
@@ -30,7 +30,7 @@ class Chef
def from_hash(hash)
response = Mash.new(hash)
- response[:all_files] = COOKBOOK_SEGMENTS.inject([]) do |memo, segment|
+ response[:all_files] = COOKBOOK_SEGMENTS.inject([]) { |memo, segment|
next memo if hash[segment].nil? || hash[segment].empty?
hash[segment].each do |file|
@@ -39,7 +39,7 @@ class Chef
end
response.delete(segment)
memo
- end
+ }
response
end