whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 01/02: Eliminate runtime warning
Date Thu, 29 Aug 2019 20:12:27 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit cb118fc4744c7be459db896c3a214aaed8e99177
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Aug 29 16:04:13 2019 -0400

    Eliminate runtime warning
---
 lib/whimsy/asf/agenda/minutes.rb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/whimsy/asf/agenda/minutes.rb b/lib/whimsy/asf/agenda/minutes.rb
index adb3d6f..3cec7b4 100644
--- a/lib/whimsy/asf/agenda/minutes.rb
+++ b/lib/whimsy/asf/agenda/minutes.rb
@@ -2,8 +2,10 @@
 
 
 class ASF::Board::Agenda
-  # Must be outside scan loop
-  FOUNDATION_BOARD = ASF::SVN.find('foundation_board') # Use find to placate Travis
+  # Must be outside scan loop.  Use find to placate Travis.
+  FOUNDATION_BOARD = ASF::SVN.find('foundation_board')
+  MINUTES = ASF::SVN.find('minutes')
+
   parse do
     minutes = @file.split(/^ 3. Minutes from previous meetings/,2).last.
       split(OFFICER_SEPARATOR,2).first
@@ -29,7 +31,6 @@ class ASF::Board::Agenda
           # unpublished minutes
           attrs['mtime'] = File.mtime(File.join(FOUNDATION_BOARD, file)).to_i
         else
-          MINUTES = ASF::SVN['minutes']
           year = file[/_(\d{4})_/, 1]
           if MINUTES and File.exist? File.join(MINUTES, year, file)
             # published minutes


Mime
View raw message