Skip to content

Commit 5a6eca4

Browse files
committed
Split logic to two lines
1 parent 1f43c7a commit 5a6eca4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundler/lib/bundler/runtime.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ def clean(dry_run = false)
174174
spec_cache_paths = []
175175
spec_gemspec_paths = []
176176
spec_extension_paths = []
177-
Bundler.rubygems.add_default_gems_to(specs).values.each do |spec|
177+
specs_to_keep = Bundler.rubygems.add_default_gems_to(specs).values
178+
specs_to_keep.each do |spec|
178179
spec_gem_paths << spec.full_gem_path
179180
# need to check here in case gems are nested like for the rails git repo
180181
md = %r{(.+bundler/gems/.+-[a-f0-9]{7,12})}.match(spec.full_gem_path)

0 commit comments

Comments
 (0)