[rubygems/rubygems] More compact open_file
fallback on Windows
https://github.com/rubygems/rubygems/commit/8f34396af6
This commit is contained in:
parent
5f8375381b
commit
f41a2c96c3
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user