no image is handled in loader

This commit is contained in:
Celogeek 2025-02-16 12:49:37 +01:00
parent 87a127d04a
commit 05dd8acc99
Signed by: celogeek
GPG Key ID: 850295F3747870DD

View File

@ -3,7 +3,6 @@ package epub
import ( import (
"archive/zip" "archive/zip"
"errors"
"fmt" "fmt"
"math" "math"
"path/filepath" "path/filepath"
@ -215,11 +214,6 @@ func (e epub) getParts() (parts []epubPart, imgStorage epubzip.StorageImageReade
return return
} }
if len(images) == 0 {
err = errors.New("no image found")
return
}
// sort result by id and part // sort result by id and part
sort.Slice(images, func(i, j int) bool { sort.Slice(images, func(i, j int) bool {
if images[i].Id == images[j].Id { if images[i].Id == images[j].Id {