From 86eaee5a2579697c4999c6ced544723d1d79b40c Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 31 Jan 2026 22:34:48 -0500 Subject: [PATCH] lint(handlers): Use strings.EqualFold for case-insensitive comparison Fix SA6005 staticcheck warning in OPDS handler --- internal/handlers/opds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handlers/opds.go b/internal/handlers/opds.go index a9326d8..1b95928 100644 --- a/internal/handlers/opds.go +++ b/internal/handlers/opds.go @@ -106,7 +106,7 @@ func (h *OPDSHandler) GetDeviceCatalog(c echo.Context) error { if includeFormat != "" { filteredItems := []database.ListMediaItemsByLibraryRow{} for _, item := range allItems { - if strings.ToLower(item.FormatGroup) == strings.ToLower(includeFormat) { + if strings.EqualFold(item.FormatGroup, includeFormat) { filteredItems = append(filteredItems, item) } }