if we didn't convert image, don't save data
This commit is contained in:
parent
ac5112757e
commit
d2870d8207
|
@ -175,6 +175,7 @@ func savedonk(url string, name, media string, localize bool) *Donk {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("unable to decode image: %s", err)
|
log.Printf("unable to decode image: %s", err)
|
||||||
localize = false
|
localize = false
|
||||||
|
data = []byte{}
|
||||||
goto saveit
|
goto saveit
|
||||||
}
|
}
|
||||||
data = img.Data
|
data = img.Data
|
||||||
|
|
Loading…
Reference in New Issue