Use implicit begin

This commit is contained in:
Jack Nagel 2013-05-22 19:58:11 -05:00
parent b24f8e2c9e
commit b2ff6e934b

View File

@ -260,7 +260,6 @@ end
module GitHub extend self
def open url, headers={}, &block
begin
default_headers = {'User-Agent' => HOMEBREW_USER_AGENT}
default_headers['Authorization'] = "token #{HOMEBREW_GITHUB_API_TOKEN}" if HOMEBREW_GITHUB_API_TOKEN
Kernel.open(url, default_headers.merge(headers), &block)
@ -271,7 +270,6 @@ module GitHub extend self
raise e
end
end
end
def issues_for_formula name
# bit basic as depends on the issue at github having the exact name of the