Update download.go

This commit is contained in:
BitHeaven
2022-11-10 20:18:19 +05:00
committed by GitHub
parent 4088e2baf1
commit ae19866d59

View File

@ -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