Skip to content

Commit

Permalink
[rubygems/rubygems] Do not set previously unset value
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu authored and matzbot committed Jun 19, 2024
1 parent 57e1507 commit 321ed86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/rubygems/test_gem_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2577,6 +2577,7 @@ def load_relative(value)

yield
ensure
RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_libruby_relative
# RbConfig::CONFIG values are strings only, there should not be a nil.
RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_libruby_relative if orig_libruby_relative
end
end

0 comments on commit 321ed86

Please sign in to comment.