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: DRY
Date Thu, 07 Mar 2019 22:31:11 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 dab4ab7  DRY
dab4ab7 is described below

commit dab4ab7227d446f6785d2638d2f1580544d93914
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Mar 7 22:31:10 2019 +0000

    DRY
---
 lib/whimsy/asf/member.rb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/whimsy/asf/member.rb b/lib/whimsy/asf/member.rb
index 1d00e1e..fc7af88 100644
--- a/lib/whimsy/asf/member.rb
+++ b/lib/whimsy/asf/member.rb
@@ -145,9 +145,11 @@ module ASF
         @@mtime = 0
       end
 
-      if File.mtime(File.join(foundation, 'members.txt')).to_i > @@mtime.to_i
-        @@mtime = File.mtime(File.join(foundation, 'members.txt'))
-        text = File.read(File.join(foundation, 'members.txt'))
+      member_file = File.join(foundation, 'members.txt')
+      member_time = File.mtime(member_file)
+      if member_time.to_i > @@mtime.to_i
+        @@mtime = member_time
+        text = File.read(member_file)
         @@text = WeakRef.new(text)
       end
 


Mime
View raw message