From a9c812a1b31166e1b456ba9c863fd73ffbfc0b57 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 6 Feb 2014 21:58:56 +0400 Subject: [PATCH] Style fix. --- utils/download.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/download.go b/utils/download.go index 6059289a..c593d304 100644 --- a/utils/download.go +++ b/utils/download.go @@ -275,19 +275,19 @@ func DownloadTryCompression(downloader Downloader, url string, expectedChecksums for _, method := range compressionMethods { var file *os.File - tryUrl := url + method.extenstion + tryURL := url + method.extenstion foundChecksum := false for suffix, expected := range expectedChecksums { - if strings.HasSuffix(tryUrl, suffix) { - file, err = DownloadTempWithChecksum(downloader, tryUrl, expected, ignoreMismatch) + if strings.HasSuffix(tryURL, suffix) { + file, err = DownloadTempWithChecksum(downloader, tryURL, expected, ignoreMismatch) foundChecksum = true break } } if !foundChecksum { - file, err = DownloadTemp(downloader, tryUrl) + file, err = DownloadTemp(downloader, tryURL) } if err != nil {