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 c6aed9d  Tidy up
c6aed9d is described below

commit c6aed9dfc7de2f888cfe4b1fa8e21172b1dc4664
Author: Sebb <[email protected]>
AuthorDate: Fri Sep 10 13:20:20 2021 +0100

    Tidy up
---
 www/roster/public_ldap_authgroups.rb | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/www/roster/public_ldap_authgroups.rb 
b/www/roster/public_ldap_authgroups.rb
index 46f3b80..e44104c 100644
--- a/www/roster/public_ldap_authgroups.rb
+++ b/www/roster/public_ldap_authgroups.rb
@@ -33,17 +33,17 @@ if groups.empty?
 end
 
 lastStamp = ''
-groups.keys.sort_by {|a| a.name}.each do |entry|
-    m = []
-    entry.members.sort_by {|a| a.name}.each do |e|
-        m << e.name
-    end
-    lastStamp = entry.modifyTimestamp if entry.modifyTimestamp > lastStamp
-    entries[entry.name] = {
-        createTimestamp: entry.createTimestamp,
-        modifyTimestamp: entry.modifyTimestamp,
-        roster: m
-    }
+groups.keys.sort_by(&:name).each do |entry|
+  m = []
+  entry.members.sort_by(&:name).each do |e|
+    m << e.name
+  end
+  lastStamp = entry.modifyTimestamp if entry.modifyTimestamp > lastStamp
+  entries[entry.name] = {
+    createTimestamp: entry.createTimestamp,
+    modifyTimestamp: entry.modifyTimestamp,
+    roster: m
+  }
 end
 
 info = {

Reply via email to