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 be3f658  Wrong array entry to check
be3f658 is described below

commit be3f65871a458baf734eaf16de72c00fc9e203d1
Author: Sebb <[email protected]>
AuthorDate: Sun Jul 5 00:25:58 2020 +0100

    Wrong array entry to check
---
 tools/wwwdocs.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/wwwdocs.rb b/tools/wwwdocs.rb
index 0728544..28a9f9a 100755
--- a/tools/wwwdocs.rb
+++ b/tools/wwwdocs.rb
@@ -111,7 +111,7 @@ end
 #   - REMOVES any error scan entries
 #   - Adds array element of auth realm if login required
 def annotate_scan(scan, auth)
-  annotated = scan.reject{ |k, v| v[1] =~ /\A#{ISERR}/ }
+  annotated = scan.reject{ |k, v| v[0] =~ /\A#{ISERR}/ }
   annotated.each do |path, ary|
     realm = auth.select { |k, v| path.match(/\A#{k}/) }
     if realm.values.first

Reply via email to