aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2013-05-27 18:31:18 -0500
committerJack Nagel2013-05-27 18:31:18 -0500
commit8080d17098fcd7eadf69c9665c2fb53f9f1b78c1 (patch)
tree48b439a7424e80a96a6520429ee54e78e21d8470 /Library/Homebrew/cmd
parent918e991ad1db26e7cb0d81e3314c7d5ba96db99f (diff)
downloadhomebrew-8080d17098fcd7eadf69c9665c2fb53f9f1b78c1.tar.bz2
audit: drop redundant 'each' after 'grep'
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 953dc6459..f4ed74ba6 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