aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/lib/envutil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb
index 93b6b8e98b..04fdc8d30f 100644
--- a/test/lib/envutil.rb
+++ b/test/lib/envutil.rb
@@ -127,7 +127,7 @@ module EnvUtil
th.kill if th
end
[in_c, in_p, out_c, out_p, err_c, err_p].each do |io|
- io.close if io && !io.closed?
+ io&.close
end
[th_stdout, th_stderr].each do |th|
th.join if th