[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
|
if Thread.main != Thread.current
|
||||||
raise
|
raise
|
||||||
else
|
else
|
||||||
File.open(path, flags) do |io|
|
File.open(path, flags, &block)
|
||||||
yield io
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user