whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Should not have dropped uniq
Date Wed, 02 May 2018 19:37:33 GMT
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 d83c24f  Should not have dropped uniq
d83c24f is described below

commit d83c24fbd6812501ffa45091eec8b18449f93f29
Author: Sebb <sebb@apache.org>
AuthorDate: Wed May 2 20:37:31 2018 +0100

    Should not have dropped uniq
---
 lib/whimsy/asf/committee.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/committee.rb b/lib/whimsy/asf/committee.rb
index eddcdba..95b6cd9 100644
--- a/lib/whimsy/asf/committee.rb
+++ b/lib/whimsy/asf/committee.rb
@@ -368,7 +368,7 @@ module ASF
       # Extract officers
       # first drop leading text so we only match officers at end of section
       @officers = head.sub(/.*?also has .*? Officers/m,'').
-        scan(/^[ \t]+(\w.*?)(?:[ \t][ \t]|[ \t]?$)/).flatten.
+        scan(/^[ \t]+(\w.*?)(?:[ \t][ \t]|[ \t]?$)/).flatten.uniq.
         map {|name| list[name]}
 
       # for each committee in section 3

-- 
To stop receiving notification emails like this one, please contact
sebb@apache.org.

Mime
View raw message