aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-11-15 14:34:49 +0000
committerMike McQuaid2016-11-15 14:34:49 +0000
commitd7e72899e6f24dca5e02a734d5a4e64e39fc680e (patch)
tree403f2458abf45d37e4e4c9e07da2e636bf1ace2d
parentc1af8fba55dc2bdee54c41cb1e0dfe327ddf1084 (diff)
downloadbrew-d7e72899e6f24dca5e02a734d5a4e64e39fc680e.tar.bz2
uninstall: remove nil requireds/dependents
These shouldn’t get here in the first place so this is a bit of a hack pending a better fix.
-rw-r--r--Library/Homebrew/cmd/uninstall.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb
index 34695bd1c..b37e67224 100644
--- a/Library/Homebrew/cmd/uninstall.rb
+++ b/Library/Homebrew/cmd/uninstall.rb
@@ -99,8 +99,8 @@ module Homebrew
attr_reader :reqs, :deps
def initialize(requireds, dependents)
- @reqs = requireds
- @deps = dependents
+ @reqs = requireds.compact
+ @deps = dependents.compact
end
protected