From ae19866d597143c9a676ecaaf7ed26896a664bd7 Mon Sep 17 00:00:00 2001 From: BitHeaven <33015545+BitHeaven-Official@users.noreply.github.com> Date: Thu, 10 Nov 2022 20:18:19 +0500 Subject: [PATCH] Update download.go --- concurrent/download.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/concurrent/download.go b/concurrent/download.go index 3c66536..48dd98c 100644 --- a/concurrent/download.go +++ b/concurrent/download.go @@ -123,8 +123,7 @@ func downloadPost(post *e621.Post, directory string) error { if _, err := os.Stat(savePath); err == nil { fmt.Print("File exists, skip...\n") - } - else { + } else { resp, err := e621.HTTPGet(post.File.URL) if err != nil { return err