diff options
| author | Jack Nagel | 2013-05-27 18:31:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-27 18:31:18 -0500 |
| commit | 1a7ea33ba5b264d00a96349f361a76399c98ce17 (patch) | |
| tree | 031c864147d884d60161adff64f703f612e51e65 | |
| parent | d212b360eca4969109a3bfcf0fd86e45b75554f7 (diff) | |
| download | brew-1a7ea33ba5b264d00a96349f361a76399c98ce17.tar.bz2 | |
audit: drop redundant 'each' after 'grep'
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 6 |
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 |
