diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-04-01 11:29:38 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-04-01 11:29:38 -0700 |
commit | af0f5e3b2d527de1abd3d6db69a12678ad338f98 (patch) | |
tree | 1173f25e4a7c8e876e1b8faace7895d2dfd13aa0 /lib/chef/cookbook/synchronizer.rb | |
parent | 5c7afb6fc445241c3dcd5767a90215b6a74deda9 (diff) | |
download | chef-af0f5e3b2d527de1abd3d6db69a12678ad338f98.tar.gz |
Resolve our chefstyle warningsredundant_begins
Now that knife has been moved we can resolve the current warnings
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/cookbook/synchronizer.rb')
-rw-r--r-- | lib/chef/cookbook/synchronizer.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/chef/cookbook/synchronizer.rb b/lib/chef/cookbook/synchronizer.rb index 53e874d0e8..e0ce5d7f41 100644 --- a/lib/chef/cookbook/synchronizer.rb +++ b/lib/chef/cookbook/synchronizer.rb @@ -143,11 +143,9 @@ class Chef end def files_remaining_by_cookbook - @files_remaining_by_cookbook ||= begin - files_by_cookbook.inject({}) do |memo, (cookbook, files)| - memo[cookbook] = files.size - memo - end + @files_remaining_by_cookbook ||= files_by_cookbook.inject({}) do |memo, (cookbook, files)| + memo[cookbook] = files.size + memo end end |