Skip to content

Commit 321ed86

Browse files
nobumatzbot
authored andcommitted
[rubygems/rubygems] Do not set previously unset value
rubygems/rubygems@0148cce153
1 parent 57e1507 commit 321ed86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/rubygems/test_gem_installer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2577,6 +2577,7 @@ def load_relative(value)
25772577

25782578
yield
25792579
ensure
2580-
RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_libruby_relative
2580+
# RbConfig::CONFIG values are strings only, there should not be a nil.
2581+
RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_libruby_relative if orig_libruby_relative
25812582
end
25822583
end

0 commit comments

Comments
 (0)