mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 15:52:38 +02:00
no image is handled in loader
This commit is contained in:
parent
87a127d04a
commit
05dd8acc99
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user