From d7e72899e6f24dca5e02a734d5a4e64e39fc680e Mon Sep 17 00:00:00 2001
From: Mike McQuaid <mike@mikemcquaid.com>
Date: Tue, 15 Nov 2016 14:34:49 +0000
Subject: [PATCH] uninstall: remove nil requireds/dependents
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

These shouldn鈥檛 get here in the first place so this is a bit of a hack
pending a better fix.
---
 Library/Homebrew/cmd/uninstall.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb
index 34695bd1c2..b37e672248 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
-- 
GitLab