From 7f696b8859e91725262b7dc731078baf8fa95d56 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 19 Mar 2023 21:02:16 -0700 Subject: Remove a warning in bootstraptest/runner.rb ../bootstraptest/runner.rb:121: warning: assigned but unused variable - e --- bootstraptest/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstraptest') diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index fc4998b523..c8ba824407 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -118,7 +118,7 @@ BT = Class.new(bt) do r = IO.for_fd($1.to_i(10), "rb", autoclose: false) w = IO.for_fd($2.to_i(10), "wb", autoclose: false) end - rescue => e + rescue r.close if r else r.close_on_exec = true -- cgit v1.2.1