refactor: shorten verbose variable names across codebase

This commit is contained in:
2026-06-23 17:23:27 +02:00
committed by Milas Holsting
parent 4c7abea589
commit 3515476374
12 changed files with 47 additions and 46 deletions

View File

@@ -195,7 +195,7 @@ func buildAllowedWatchOrderEntries(result watchorder.WatchOrderResult, mode Watc
break
}
}
shouldIncludeAllTypes := mode == WatchOrderModeComplete || !hasTVEntry
allTypes := mode == WatchOrderModeComplete || !hasTVEntry
for _, entry := range result.WatchOrder {
if len(allowedEntries) >= maxWatchOrderEntries {
@@ -204,8 +204,8 @@ func buildAllowedWatchOrderEntries(result watchorder.WatchOrderResult, mode Watc
if seen[entry.ID] {
continue
}
normalizedType := strings.ToLower(strings.TrimSpace(entry.Type))
if !shouldIncludeAllTypes && normalizedType != "tv" && normalizedType != "movie" {
typ := strings.ToLower(strings.TrimSpace(entry.Type))
if !allTypes && typ != "tv" && typ != "movie" {
continue
}