aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-03-13 09:09:18 +0000
committerMike McQuaid2014-03-13 10:05:20 +0000
commitc789f907ebe4db348c99d59b9cd1ca52db36d95e (patch)
tree828970636efb9c0d3c9216388fda6365b4b6bc0f /Library/Homebrew/utils.rb
parent6e2a469e8b95f98dc71adf57ba8b0ce85f02ecf4 (diff)
downloadbrew-c789f907ebe4db348c99d59b9cd1ca52db36d95e.tar.bz2
utils: return empty issues array when no API.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index f272ab34c..519b2869a 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -361,7 +361,7 @@ module GitHub extend self
end
def print_pull_requests_matching(query)
- return if ENV['HOMEBREW_NO_GITHUB_API']
+ return [] if ENV['HOMEBREW_NO_GITHUB_API']
puts "Searching pull requests..."
open_or_closed_prs = issues_matching(query, :type => "pr")