code cleanup
This commit is contained in:
parent
917be1687f
commit
5336968e05
34 changed files with 193 additions and 115 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue