mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Makes nil-safe
This commit is contained in:
parent
b247ac086e
commit
de3f725978
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class LeakChecker
|
|||
next if /darwin/ =~ RUBY_PLATFORM and [0, -1].include?(s.dev)
|
||||
str << ' ' << s.inspect
|
||||
ensure
|
||||
io.close
|
||||
io&.close
|
||||
end
|
||||
end
|
||||
puts "Leaked file descriptor: #{test_name}: #{fd}#{str}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue