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