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 049c27a6 Revert "Doesn't seem needed"
049c27a6 is described below
commit 049c27a617e34f9cc5c2321bec086374e44f3d7b
Author: Sebb <[email protected]>
AuthorDate: Mon Jan 27 23:34:34 2025 +0000
Revert "Doesn't seem needed"
This reverts commit d9f365bc2198d73c876f30fbe6f4194f9d1b33a9.
---
lib/whimsy/asf/member-files.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/whimsy/asf/member-files.rb b/lib/whimsy/asf/member-files.rb
index 96436c36..5ce45982 100644
--- a/lib/whimsy/asf/member-files.rb
+++ b/lib/whimsy/asf/member-files.rb
@@ -181,6 +181,7 @@ module ASF
def self.sort_board_nominees(contents, entries=nil)
sections = contents.split(%r{^-{10,}\n})
header = sections.shift(2)
+ sections.pop if sections.last.strip == ''
sections.append(*entries) if entries # add new entries if any
names = {}
# replace 'each' by 'sort_by!' to sort by last name