aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb6
-rw-r--r--Library/Homebrew/cmd/cleanup.rb2
-rw-r--r--Library/Homebrew/cmd/update.rb1
3 files changed, 3 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index f880db36b..b391bc0e3 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -118,8 +118,6 @@ class FormulaAuditor
end
def audit_deps
- problems = []
-
# Don't depend_on aliases; use full name
aliases = Formula.aliases
f.deps.select { |d| aliases.include? d.name }.each do |d|
@@ -163,8 +161,8 @@ class FormulaAuditor
def audit_conflicts
f.conflicts.each do |req|
begin
- conflict_f = Formula.factory req.formula
- rescue
+ Formula.factory req.formula
+ rescue FormulaUnavailableError
problem "Can't find conflicting formula \"#{req.formula}\"."
end
end
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb
index 490065606..86607b2e2 100644
--- a/Library/Homebrew/cmd/cleanup.rb
+++ b/Library/Homebrew/cmd/cleanup.rb
@@ -11,7 +11,7 @@ module Homebrew extend self
HOMEBREW_CELLAR.children.each do |rack|
begin
cleanup_formula rack.basename.to_s if rack.directory?
- rescue FormulaUnavailableError => e
+ rescue FormulaUnavailableError
# Don't complain about Cellar folders that are from DIY installs
# instead of core formulae.
end
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index db8d8d79c..838351e68 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -25,7 +25,6 @@ module Homebrew extend self
master_updater.pull!
report.merge!(master_updater.report)
- new_files = []
Dir["Library/Taps/*"].each do |tapd|
next unless File.directory?(tapd)