Skip to content

Commit

Permalink
use created variable
Browse files Browse the repository at this point in the history
  • Loading branch information
refik committed Jun 19, 2014
1 parent 22e0bab commit 371097a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 371097a

Please sign in to comment.