1
0
Fork 0
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:
Nobuyoshi Nakada 2020-05-06 14:08:26 +09:00
parent b247ac086e
commit de3f725978
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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}"