From fe1bf57a1547bec01c80f42c75ee2e3d9afa0bb1 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 1 Sep 2014 23:24:57 -0500 Subject: [PATCH] audit: fix line number off-by-one --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 032075eefa..1bd3249224 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -567,7 +567,7 @@ class FormulaAuditor audit_conflicts audit_patches audit_text - text.split("\n").each_with_index { |line, lineno| audit_line(line, lineno) } + text.split("\n").each_with_index { |line, lineno| audit_line(line+1, lineno) } audit_installed end