Skip to content

Commit 75ffa8e

Browse files
Update bundler/lib/bundler/settings.rb
Co-authored-by: Martin Emde <martinemde@users.noreply.github.com>
1 parent b913cfc commit 75ffa8e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bundler/lib/bundler/settings.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,9 @@ def [](name)
104104

105105
value = nil
106106
configs.each do |_, config|
107-
if config[key]
108-
value = config[key]
109-
break
110-
end
107+
value = config[key]
108+
next if value.nil?
109+
break
111110
end
112111

113112
converted_value(value, name)

0 commit comments

Comments
 (0)