You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/11/24 16:41:18 UTC

[whimsy] branch master updated: Unused/unnecessary

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 7282167  Unused/unnecessary
7282167 is described below

commit 72821675e10f817a1ff5dbd1fc8d1e18829739d3
Author: Sebb <se...@apache.org>
AuthorDate: Tue Nov 24 16:41:09 2020 +0000

    Unused/unnecessary
---
 tools/site-scan.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 3d02123..0fc32ab 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -64,7 +64,7 @@ def parse(id, site, name)
   $stderr.puts "#{id} #{uri} #{status}"
   # Bail and return if getting the site returns an error code
   if response.respond_to? :code and response.code =~ /^[45]/
-    data[:errors] = "cache.get(#{site.to_s}) error code #{response.code}"
+    data[:errors] = "cache.get(#{site}) error code #{response.code}"
     return data
   end
   doc = Nokogiri::HTML(response)
@@ -138,7 +138,7 @@ def parse(id, site, name)
     end
     # Note we also check for incubator disclaimer (immaterial of tlp|podling)
     if txt =~ SiteStandards::PODLING_CHECKS['disclaimer'][SiteStandards::CHECK_CAPTURE]
-      t, p = getText(txt, node, / is an effort undergoing/)
+      t, _p = getText(txt, node, / is an effort undergoing/)
       data[:disclaimer] = t
     end
   end