From 05dd8acc99d47bc945eaee373180889d56f8e224 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Sun, 16 Feb 2025 12:49:37 +0100 Subject: [PATCH] no image is handled in loader --- pkg/epub/epub.go | 6 ------ 1 file changed, 6 deletions(-) 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 {