fix: apply go fix updates (any, range loop, slices, maps)

This commit is contained in:
2026-06-16 13:36:45 +02:00
parent 23852e53a6
commit 2cd270e7e3
6 changed files with 17 additions and 19 deletions

View File

@@ -239,7 +239,7 @@ func (a Anime) DurationSeconds() float64 {
var currentValue int
hasValue := false
for _, token := range strings.Fields(strings.ToLower(a.Duration)) {
for token := range strings.FieldsSeq(strings.ToLower(a.Duration)) {
value, err := strconv.Atoi(token)
if err == nil {
currentValue = value