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

commit 9a33036c083d3ee6185fdfc15278145fac6b4af2
Author: Sebb <[email protected]>
AuthorDate: Fri Sep 10 13:54:05 2021 +0100

    Tidy up
---
 www/roster/public_ldap_committees.rb | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/www/roster/public_ldap_committees.rb 
b/www/roster/public_ldap_committees.rb
index 26924e0..e535bd9 100644
--- a/www/roster/public_ldap_committees.rb
+++ b/www/roster/public_ldap_committees.rb
@@ -3,7 +3,7 @@
 # Previously read LDAP ou=pmc,ou=committees,ou=groups,dc=apache,dc=org
 # but this is deprecated.
 # The output is intended to include the same entries as before;
-# as such it includes tac and security even though they are not PMCs
+# as such it includes tac and security even though they are not PMCs
 #
 # Creates JSON output with the following format:
 #
@@ -40,19 +40,19 @@ end
 
 lastStamp = ''
 
-projects.keys.sort_by {|a| a.name}.each do |project|
+projects.keys.sort_by(&:name).each do |project|
   next unless pmcs.include? project.name
   m = []
   createTimestamp = project.createTimestamp
   modifyTimestamp = project.modifyTimestamp
-  project.owners.sort_by {|a| a.name}.each do |e|
-      m << e.name
+  project.owners.sort_by(&:name).each do |e|
+    m << e.name
   end
   lastStamp = modifyTimestamp if modifyTimestamp > lastStamp
   entries[project.name] = {
-      createTimestamp: createTimestamp,
-      modifyTimestamp: modifyTimestamp,
-      roster: m
+    createTimestamp: createTimestamp,
+    modifyTimestamp: modifyTimestamp,
+    roster: m
   }
 end
 

Reply via email to