Skip to content

Commit 59ec6b4

Browse files
Consolidate condition on path sources
It matches the comment above more naturally and it's consistent with how the same thing is checked in other places.
1 parent b1817f9 commit 59ec6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundler/lib/bundler/definition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ def converge_specs(specs)
10561056
next if @sources_to_unlock.include?(source.name)
10571057

10581058
# Path sources have special logic
1059-
if source.instance_of?(Source::Path) || source.instance_of?(Source::Gemspec) || source.instance_of?(Source::Git)
1059+
if source.is_a?(Source::Path)
10601060
new_spec = source.specs[s].first
10611061
if new_spec
10621062
s.runtime_dependencies.replace(new_spec.runtime_dependencies)

0 commit comments

Comments
 (0)