Run modernise on the project
This will be available in "go fix" within Go 1.26 but in the meantime: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
This commit is contained in:
@@ -144,7 +144,7 @@ func (s *serverImpl) createHandler() http.Handler {
|
||||
search = strings.ToLower(search)
|
||||
|
||||
filtered := make([]mediaprovider.Playlist, 0)
|
||||
for i := 0; i < len(all); i++ {
|
||||
for i := range all {
|
||||
playlist := all[i]
|
||||
name := strings.ReplaceAll(playlist.Name, " ", "")
|
||||
name = strings.ToLower(name)
|
||||
|
||||
Reference in New Issue
Block a user