From 6808ea609d8c0f8346bf4e0ab62bf23fdf45d16d Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Mon, 28 Apr 2025 10:01:34 +0200 Subject: [PATCH] Fix unused variable warning ``` lib/async/pool/controller.rb:332: warning: assigned but unused variable - error ``` --- lib/async/pool/controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/async/pool/controller.rb b/lib/async/pool/controller.rb index a06946a..d5f5931 100644 --- a/lib/async/pool/controller.rb +++ b/lib/async/pool/controller.rb @@ -328,7 +328,7 @@ def available_resource end return resource - rescue Exception => error + rescue Exception reuse(resource) if resource raise end