mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Style fix.
This commit is contained in:
+4
-4
@@ -275,19 +275,19 @@ func DownloadTryCompression(downloader Downloader, url string, expectedChecksums
|
|||||||
for _, method := range compressionMethods {
|
for _, method := range compressionMethods {
|
||||||
var file *os.File
|
var file *os.File
|
||||||
|
|
||||||
tryUrl := url + method.extenstion
|
tryURL := url + method.extenstion
|
||||||
foundChecksum := false
|
foundChecksum := false
|
||||||
|
|
||||||
for suffix, expected := range expectedChecksums {
|
for suffix, expected := range expectedChecksums {
|
||||||
if strings.HasSuffix(tryUrl, suffix) {
|
if strings.HasSuffix(tryURL, suffix) {
|
||||||
file, err = DownloadTempWithChecksum(downloader, tryUrl, expected, ignoreMismatch)
|
file, err = DownloadTempWithChecksum(downloader, tryURL, expected, ignoreMismatch)
|
||||||
foundChecksum = true
|
foundChecksum = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !foundChecksum {
|
if !foundChecksum {
|
||||||
file, err = DownloadTemp(downloader, tryUrl)
|
file, err = DownloadTemp(downloader, tryURL)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user