diff options
| author | Mike McQuaid | 2014-03-13 09:09:18 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-13 10:05:20 +0000 |
| commit | c789f907ebe4db348c99d59b9cd1ca52db36d95e (patch) | |
| tree | 828970636efb9c0d3c9216388fda6365b4b6bc0f /Library/Homebrew/utils.rb | |
| parent | 6e2a469e8b95f98dc71adf57ba8b0ce85f02ecf4 (diff) | |
| download | brew-c789f907ebe4db348c99d59b9cd1ca52db36d95e.tar.bz2 | |
utils: return empty issues array when no API.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
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") |
