utils: return empty issues array when no API.
This commit is contained in:
parent
6e2a469e8b
commit
c789f907eb
@ -361,7 +361,7 @@ module GitHub extend self
|
|||||||
end
|
end
|
||||||
|
|
||||||
def print_pull_requests_matching(query)
|
def print_pull_requests_matching(query)
|
||||||
return if ENV['HOMEBREW_NO_GITHUB_API']
|
return [] if ENV['HOMEBREW_NO_GITHUB_API']
|
||||||
puts "Searching pull requests..."
|
puts "Searching pull requests..."
|
||||||
|
|
||||||
open_or_closed_prs = issues_matching(query, :type => "pr")
|
open_or_closed_prs = issues_matching(query, :type => "pr")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user