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 50cd6d0  Not an unused variable
50cd6d0 is described below

commit 50cd6d0f33a39534f75df3a7eeaef81e37b54749
Author: Sebb <[email protected]>
AuthorDate: Sun Jan 12 22:36:26 2020 +0000

    Not an unused variable
---
 lib/whimsy/asf/ldap.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index e2669aa..28b32d2 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -1028,7 +1028,8 @@ module ASF
 
     # return a list of ids who are members of this group
     def memberids
-      weakref(:members) do
+      # members looks like a variable, but it's not, so don't drop it
+      members = weakref(:members) do
         ASF.search_one(base, "cn=#{name}", 'memberUid').flatten
       end
     end

Reply via email to