lint(handlers): Use strings.EqualFold for case-insensitive comparison
Fix SA6005 staticcheck warning in OPDS handler
This commit is contained in:
1 parent
d6d208c3d1
commit
86eaee5a25
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user