whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] 01/02: Unnecessary
Date Tue, 29 Sep 2020 21:51:35 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

commit 76bcd1894552b5b65fc976064bfb9d2c641245d6
Author: Sebb <sebb@apache.org>
AuthorDate: Tue Sep 29 22:50:49 2020 +0100

    Unnecessary
---
 lib/whimsy/asf.rb           | 2 +-
 lib/whimsy/sitestandards.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf.rb b/lib/whimsy/asf.rb
index 9d750ad..e37c9cd 100644
--- a/lib/whimsy/asf.rb
+++ b/lib/whimsy/asf.rb
@@ -28,7 +28,7 @@ module ASF
   def self.library_mtime
     parent_dir = File.dirname(File.expand_path(__FILE__))
     sources = Dir.glob("#{parent_dir}/**/*")
-    times = sources.map {|source| File.mtime(source.untaint)}
+    times = sources.map {|source| File.mtime(source)}
     times.max.gmtime
   end
 
diff --git a/lib/whimsy/sitestandards.rb b/lib/whimsy/sitestandards.rb
index e5d31c5..7b5a84f 100644
--- a/lib/whimsy/sitestandards.rb
+++ b/lib/whimsy/sitestandards.rb
@@ -161,7 +161,7 @@ module SiteStandards
   # @param tlp true if project; podling otherwise
   # @return [hash of site data, crawl_time]
   def get_sites(tlp = true)
-      local_copy = File.expand_path("#{get_url(true)}#{get_filename(tlp)}", __FILE__).untaint
+      local_copy = File.expand_path("#{get_url(true)}#{get_filename(tlp)}", __FILE__)
       if File.exist? local_copy
         crawl_time = File.mtime(local_copy).httpdate # show time in same format as last-mod
         sites = JSON.parse(File.read(local_copy))


Mime
View raw message