chore: cleanup files
This commit is contained in:
@@ -215,7 +215,7 @@ func (h *Handler) HandleQuickSearch(w http.ResponseWriter, r *http.Request) {
|
||||
if query == "" {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
json.NewEncoder(w).Encode([]interface{}{})
|
||||
json.NewEncoder(w).Encode([]any{})
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ func (h *Handler) sortEntries(entries []database.GetUserWatchListRow, sortBy, so
|
||||
}
|
||||
|
||||
// Simple bubble sort for small lists
|
||||
for i := 0; i < len(entries); i++ {
|
||||
for i := range len(entries) {
|
||||
for j := i + 1; j < len(entries); j++ {
|
||||
if less(j, i) {
|
||||
entries[i], entries[j] = entries[j], entries[i]
|
||||
|
||||
Reference in New Issue
Block a user