handle error

This commit is contained in:
Celogeek 2024-02-10 00:07:21 +02:00
parent 2990367e2f
commit 1ff7912b0f
Signed by: celogeek
SSH Key Fingerprint: SHA256:DEDfxIK2nUWXbslbRkww3zsauDjhWHlTXar+ak4lDJ4

View File

@ -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 {