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

This commit is contained in:
2026-06-16 13:36:45 +02:00
committed by Milas Holsting
parent 8f0549b290
commit bc7a3f58cf
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