[rubygems/rubygems] More compact open_file fallback on Windows

https://github.com/rubygems/rubygems/commit/8f34396af6
This commit is contained in:
David Rodríguez 2024-05-23 11:57:25 +02:00 committed by git
parent 5f8375381b
commit f41a2c96c3

View File

@ -807,9 +807,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
if Thread.main != Thread.current
raise
else
File.open(path, flags) do |io|
yield io
end
File.open(path, flags, &block)
end
end