whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 02/02: no need to rescan if current agenda changes
Date Thu, 07 Apr 2016 21:22:15 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 839df5bc02adfbd2e4097175727dc08100c6c48f
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Apr 7 17:21:56 2016 -0400

    no need to rescan if current agenda changes
---
 www/board/agenda/models/comments.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/board/agenda/models/comments.rb b/www/board/agenda/models/comments.rb
index decd0b6..eabfd4e 100644
--- a/www/board/agenda/models/comments.rb
+++ b/www/board/agenda/models/comments.rb
@@ -16,13 +16,13 @@ class HistoricalComments
       sort_by {|file| File.basename(file)}.
       map {|file| file.untaint}
 
+    # drop latest agenda
+    agendas.pop
+
     # return previous results unless an agenda has been updated
     mtime = agendas.map {|file| File.mtime(file)}.max
     return @@comments if mtime == @@mtime
 
-    # drop latest agenda
-    agendas.pop
-
     # initialize comments to empty hash of hashes
     comments = Hash.new {|hash, key| hash[key] = {}}
 

-- 
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <commits@whimsical.apache.org>.

Mime
View raw message