Update download.go

This commit is contained in:
BitHeaven 2022-11-10 20:18:19 +05:00 committed by GitHub
parent 4088e2baf1
commit ae19866d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -123,8 +123,7 @@ func downloadPost(post *e621.Post, directory string) error {
if _, err := os.Stat(savePath); err == nil { if _, err := os.Stat(savePath); err == nil {
fmt.Print("File exists, skip...\n") fmt.Print("File exists, skip...\n")
} } else {
else {
resp, err := e621.HTTPGet(post.File.URL) resp, err := e621.HTTPGet(post.File.URL)
if err != nil { if err != nil {
return err return err