Use implicit begin
This commit is contained in:
parent
b24f8e2c9e
commit
b2ff6e934b
@ -260,7 +260,6 @@ end
|
|||||||
|
|
||||||
module GitHub extend self
|
module GitHub extend self
|
||||||
def open url, headers={}, &block
|
def open url, headers={}, &block
|
||||||
begin
|
|
||||||
default_headers = {'User-Agent' => HOMEBREW_USER_AGENT}
|
default_headers = {'User-Agent' => HOMEBREW_USER_AGENT}
|
||||||
default_headers['Authorization'] = "token #{HOMEBREW_GITHUB_API_TOKEN}" if HOMEBREW_GITHUB_API_TOKEN
|
default_headers['Authorization'] = "token #{HOMEBREW_GITHUB_API_TOKEN}" if HOMEBREW_GITHUB_API_TOKEN
|
||||||
Kernel.open(url, default_headers.merge(headers), &block)
|
Kernel.open(url, default_headers.merge(headers), &block)
|
||||||
@ -271,7 +270,6 @@ module GitHub extend self
|
|||||||
raise e
|
raise e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def issues_for_formula name
|
def issues_for_formula name
|
||||||
# bit basic as depends on the issue at github having the exact name of the
|
# bit basic as depends on the issue at github having the exact name of the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user