Merge pull request #4631 from reitermarkus/trivial-method

Remove trivial method.
This commit is contained in:
Markus Reiter 2018-08-08 08:52:45 +02:00 committed by GitHub
commit 27d9de2a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,7 @@ class Bottle
checksum, tag = spec.checksum_for(Utils::Bottles.tag) checksum, tag = spec.checksum_for(Utils::Bottles.tag)
filename = Filename.create(formula, tag, spec.rebuild) filename = Filename.create(formula, tag, spec.rebuild)
@resource.url(build_url(spec.root_url, filename.bintray), @resource.url("#{spec.root_url}/#{filename.bintray}",
select_download_strategy(spec.root_url_specs)) select_download_strategy(spec.root_url_specs))
@resource.version = formula.pkg_version @resource.version = formula.pkg_version
@resource.checksum = checksum @resource.checksum = checksum
@ -318,10 +318,6 @@ class Bottle
private private
def build_url(root_url, filename)
"#{root_url}/#{filename}"
end
def select_download_strategy(specs) def select_download_strategy(specs)
specs[:using] ||= DownloadStrategyDetector.detect(@spec.root_url) specs[:using] ||= DownloadStrategyDetector.detect(@spec.root_url)
specs specs