Use a more accurate method name and drop unhelpful block
This commit is contained in:
parent
fed468c780
commit
a7b515e503
@ -62,7 +62,7 @@ module Homebrew extend self
|
|||||||
if count == 0 and not blacklisted? query
|
if count == 0 and not blacklisted? query
|
||||||
puts "No formula found for #{query.inspect}."
|
puts "No formula found for #{query.inspect}."
|
||||||
begin
|
begin
|
||||||
GitHub.find_pull_requests(query) { |pull| puts pull }
|
GitHub.print_pull_requests_matching(query)
|
||||||
rescue GitHub::Error => e
|
rescue GitHub::Error => e
|
||||||
opoo e.message
|
opoo e.message
|
||||||
end
|
end
|
||||||
|
@ -322,7 +322,7 @@ module GitHub extend self
|
|||||||
issues_matching(name, :state => "open")
|
issues_matching(name, :state => "open")
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_pull_requests 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..."
|
||||||
|
|
||||||
@ -339,7 +339,7 @@ module GitHub extend self
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
prs.each { |i| yield "#{i["title"]} (#{i["html_url"]})" }
|
prs.each { |i| puts "#{i["title"]} (#{i["html_url"]})" }
|
||||||
end
|
end
|
||||||
|
|
||||||
def private_repo?(user, repo)
|
def private_repo?(user, repo)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user