Skip to content

Commit 33769dd

Browse files
Remove another expand_dependencies instance
1 parent b4a0fcd commit 33769dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bundler/lib/bundler/definition.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def requested_dependencies
224224

225225
def current_dependencies
226226
dependencies.select do |d|
227-
d.should_include? && !d.gem_platforms(@platforms).empty?
227+
d.should_include? && !d.gem_platforms([generic_local_platform]).empty?
228228
end
229229
end
230230

@@ -248,10 +248,9 @@ def specs_for(groups)
248248

249249
def dependencies_for(groups)
250250
groups.map!(&:to_sym)
251-
deps = current_dependencies.reject do |d|
251+
current_dependencies.reject do |d|
252252
(d.groups & groups).empty?
253253
end
254-
expand_dependencies(deps)
255254
end
256255

257256
# Resolve all the dependencies specified in Gemfile. It ensures that

0 commit comments

Comments
 (0)