if we didn't convert image, don't save data

This commit is contained in:
Ted Unangst 2019-07-04 18:46:15 -04:00
parent ac5112757e
commit d2870d8207
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ func savedonk(url string, name, media string, localize bool) *Donk {
if err != nil {
log.Printf("unable to decode image: %s", err)
localize = false
data = []byte{}
goto saveit
}
data = img.Data