From 1a7ea33ba5b264d00a96349f361a76399c98ce17 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 27 May 2013 18:31:18 -0500 Subject: [PATCH] audit: drop redundant 'each' after 'grep' --- Library/Homebrew/cmd/audit.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 953dc64594..f4ed74ba65 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -207,7 +207,7 @@ class FormulaAuditor urls = @specs.map(&:url) # Check GNU urls; doesn't apply to mirrors - urls.grep(%r[^(?:https?|ftp)://(?!alpha).+/gnu/]).each do |u| + urls.grep(%r[^(?:https?|ftp)://(?!alpha).+/gnu/]) do |u| problem "\"ftpmirror.gnu.org\" is preferred for GNU software (url is #{u})." end @@ -242,12 +242,12 @@ class FormulaAuditor end # Check for git:// GitHub repo urls, https:// is preferred. - urls.grep(%r[^git://[^/]*github\.com/]).each do |u| + urls.grep(%r[^git://[^/]*github\.com/]) do |u| problem "Use https:// URLs for accessing GitHub repositories (url is #{u})." end # Check for http:// GitHub repo urls, https:// is preferred. - urls.grep(%r[^http://github\.com/.*\.git$]).each do |u| + urls.grep(%r[^http://github\.com/.*\.git$]) do |u| problem "Use https:// URLs for accessing GitHub repositories (url is #{u})." end