diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-11-15 15:04:53 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-06 13:08:26 -0800 |
commit | 2e92c709459dffef54f9d671e10ec9a949a94962 (patch) | |
tree | 7b24e597c763df50cf4459e7bfa9f8bb1a5014d9 /tasks | |
parent | db85ca494a484024404f1090c493613cc9521662 (diff) | |
download | chef-2e92c709459dffef54f9d671e10ec9a949a94962.tar.gz |
fix Style/SelfAssignment
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/gemfile_util.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/gemfile_util.rb b/tasks/gemfile_util.rb index e21299705a..03a729148a 100644 --- a/tasks/gemfile_util.rb +++ b/tasks/gemfile_util.rb @@ -255,8 +255,8 @@ module GemfileUtil result = {} gems.each do |name, g| dep_groups = g[:declared_groups] - [ :only_a_runtime_dependency_of_other_gems ] - dep_groups = dep_groups & groups if groups - dep_groups = dep_groups - without_groups if without_groups + dep_groups &= groups if groups + dep_groups -= without_groups if without_groups if dep_groups.any? result[name] ||= g g[:dependencies].each do |dep| |