diff options
author | Takashi Kokubun <[email protected]> | 2023-03-19 21:02:16 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-19 21:02:21 -0700 |
commit | 7f696b8859e91725262b7dc731078baf8fa95d56 (patch) | |
tree | 8b22687eaedce3f2f449abe80fa349c2f93ddec9 /bootstraptest/runner.rb | |
parent | 2d8ecfcc9a1cf65104bd0f61542a969dc3bd2317 (diff) |
Remove a warning in bootstraptest/runner.rb
../bootstraptest/runner.rb:121: warning: assigned but unused variable - e
Diffstat (limited to 'bootstraptest/runner.rb')
-rwxr-xr-x | bootstraptest/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |