aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index 147587b7c..93135235b 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -2,15 +2,8 @@ require 'formula'
require 'utils'
def ff
- if ARGV.named.empty?
- stuff = []
- Formulary.read_all do |name,k|
- stuff << Formula.factory(name)
- end
- return stuff
- else
- return ARGV.formulae
- end
+ return Formula.all if ARGV.named.empty?
+ return ARGV.formulae
end
ff.each do |f|