mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 15:52:38 +02:00
handle error
This commit is contained in:
parent
2990367e2f
commit
1ff7912b0f
@ -20,7 +20,7 @@ func newEpubProgressJson(o Options) EpubProgress {
|
|||||||
|
|
||||||
func (p *Json) Add(num int) error {
|
func (p *Json) Add(num int) error {
|
||||||
p.current += num
|
p.current += num
|
||||||
p.e.Encode(map[string]any{
|
return p.e.Encode(map[string]any{
|
||||||
"type": "progress",
|
"type": "progress",
|
||||||
"data": map[string]any{
|
"data": map[string]any{
|
||||||
"progress": map[string]any{
|
"progress": map[string]any{
|
||||||
@ -34,7 +34,6 @@ func (p *Json) Add(num int) error {
|
|||||||
"description": p.o.Description,
|
"description": p.o.Description,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Json) Close() error {
|
func (p *Json) Close() error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user