code cleanup

This commit is contained in:
stefanodvx 2025-04-24 12:20:35 +02:00
parent 917be1687f
commit 5336968e05
34 changed files with 193 additions and 115 deletions

View file

@ -8,6 +8,7 @@ import (
"github.com/PaulSonOfLars/gotgbot/v2"
"github.com/PaulSonOfLars/gotgbot/v2/ext"
"github.com/pkg/errors"
)
func HandleDefaultFormatDownload(
@ -59,7 +60,7 @@ func HandleDefaultFormatDownload(
}
if len(medias) == 0 {
return fmt.Errorf("no formats downloaded")
return errors.New("no formats downloaded")
}
isCaptionEnabled := true