You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/02/09 13:27:31 UTC

[whimsy] branch master updated: Typo

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 7fc838b  Typo
7fc838b is described below

commit 7fc838bc51eb8a129c93f1fe06e5564bb443dae2
Author: Sebb <se...@apache.org>
AuthorDate: Wed Feb 9 13:27:26 2022 +0000

    Typo
---
 www/roster/models/committee.rb | 4 ++--
 www/roster/models/nonpmc.rb    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/roster/models/committee.rb b/www/roster/models/committee.rb
index d2951e2..b45c540 100644
--- a/www/roster/models/committee.rb
+++ b/www/roster/models/committee.rb
@@ -108,7 +108,7 @@ class Committee
     unknownSecSubs = [] # unknown security@ subscribers: not PMC or ASF
     # Also look for non-ASF mod emails
     nonASFmails = {}
-    moderators?.each { |_, mods| mods.each {|m| nonASFmails[m] = '' unless m.end_with? '@apache.org'} }
+    moderators&.each { |_, mods| mods.each {|m| nonASFmails[m] = '' unless m.end_with? '@apache.org'} }
     if unMatchedSubs.length > 0 or nonASFmails.length > 0 or unMatchedSecSubs.length > 0
       load_emails # set up @people
       unMatchedSubs.each { |addr|
@@ -159,7 +159,7 @@ class Committee
     end
     return {
       id: id,
-      chair: pmc.chair?.id,
+      chair: pmc.chair&.id,
       pmc_chair: pmc_chair,
       display_name: pmc.display_name,
       description: pmc.description,
diff --git a/www/roster/models/nonpmc.rb b/www/roster/models/nonpmc.rb
index 144511c..bce96b7 100644
--- a/www/roster/models/nonpmc.rb
+++ b/www/roster/models/nonpmc.rb
@@ -99,7 +99,7 @@ class NonPMC
     unknownSecSubs = [] # unknown security@ subscribers: not PMC or ASF
     # Also look for non-ASF mod emails
     nonASFmails = {}
-    moderators?.each { |_, mods| mods.each {|m| nonASFmails[m] = '' unless m.end_with? '@apache.org'} }
+    moderators&.each { |_, mods| mods.each {|m| nonASFmails[m] = '' unless m.end_with? '@apache.org'} }
     if unMatchedSubs.length > 0 or nonASFmails.length > 0 or unMatchedSecSubs.length > 0
       load_emails # set up @people
       unMatchedSubs.each { |addr|
@@ -145,7 +145,7 @@ class NonPMC
 
     return {
       id: id,
-      chair: cttee.chair?.id,
+      chair: cttee.chair&.id,
       display_name: cttee.display_name,
       description: cttee.description,
       schedule: cttee.schedule,