From cbb91c5516ac6d2a673670edf5b7d509abe6df56 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 6 Sep 2015 13:30:02 +0100 Subject: [PATCH] exceptions: handle HOMEBREW_NO_GITHUB_API case. Closes Homebrew/homebrew#43618. --- Library/Homebrew/exceptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 7816d065c6..38bb9bf6b7 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -245,7 +245,7 @@ class BuildError < RuntimeError end end puts - unless RUBY_VERSION < "1.8.7" || issues.empty? + if RUBY_VERSION >= "1.8.7" && issues && issues.any? puts "These open issues may also help:" puts issues.map { |i| "#{i["title"]} #{i["html_url"]}" }.join("\n") end