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 0b091cb  Committee.find never returns nil/false
0b091cb is described below

commit 0b091cbf05c504f2fca0d05098452b04e48cc018
Author: Sebb <[email protected]>
AuthorDate: Fri Feb 1 16:09:56 2019 +0000

    Committee.find never returns nil/false
---
 www/board/agenda/views/actions/post-data.json.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/actions/post-data.json.rb 
b/www/board/agenda/views/actions/post-data.json.rb
index 91cf1ec..d8c9a99 100644
--- a/www/board/agenda/views/actions/post-data.json.rb
+++ b/www/board/agenda/views/actions/post-data.json.rb
@@ -46,7 +46,7 @@ when 'committee-list'
   committees[:chair] + committees[:member] + committees[:rest]
 
 when 'committee-members'
-  committee = ASF::Committee.find(@pmc)
+  committee = ASF::Committee[@pmc]
   return unless committee
   chair = committee.chairs.first
   return unless chair

Reply via email to