This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new aea063fb target is needed in rescue block
aea063fb is described below

commit aea063fbc6195abd95e4b3c25677cec7c26c791c
Author: Sebb <[email protected]>
AuthorDate: Wed Jan 17 12:02:59 2024 +0000

    target is needed in rescue block
---
 lib/whimsy/asf/ldap.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 953eb3be..259cf266 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -324,6 +324,7 @@ module ASF
 
     # try once per host, with a minimum of two tries
     attempts_left = [ASF::LDAP.hosts.length, 2].max
+    target = nil # ensure access from rescue block
     begin
       attempts_left -= 1
       ASF.ldap # creates connection if necessary and binds it

Reply via email to