From 371097a5fedb39b2dcce086666b4b276a9d4297e Mon Sep 17 00:00:00 2001 From: Refik Turkeli Date: Thu, 19 Jun 2014 21:20:53 +0300 Subject: [PATCH] use created variable --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 546fafb..025974d 100644 --- a/main.go +++ b/main.go @@ -307,7 +307,7 @@ func DownloadFile(file File, path string) error { // Renaming the file to correct path fp.Truncate(file.Size) fp.Close() - err := os.Rename(path+DownloadExtension, path) + err := os.Rename(downloadPath, path) if err != nil { log.Println(err) return err