utils: return empty issues array when no API.

This commit is contained in:
Mike McQuaid 2014-03-13 09:09:18 +00:00
parent 6e2a469e8b
commit c789f907eb

View File

@ -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")