style: normalize formatting in handler

This commit is contained in:
2026-05-02 16:14:13 +02:00
committed by Mikkel Elvers
parent 08aa10e60d
commit e89e05c6e8

View File

@@ -150,7 +150,7 @@ func (h *Handler) HandleBrowse(w http.ResponseWriter, r *http.Request) {
if err := templates.GetRenderer().ExecuteTemplate(w, "browse.gohtml", map[string]any{ if err := templates.GetRenderer().ExecuteTemplate(w, "browse.gohtml", map[string]any{
"User": user, "User": user,
"CurrentPath": r.URL.Path, "CurrentPath": r.URL.Path,
"Query": q, "Query": q,
"Type": animeType, "Type": animeType,
"Status": status, "Status": status,
@@ -250,9 +250,9 @@ func (h *Handler) HandleHTMLWatchOrder(w http.ResponseWriter, r *http.Request) {
} }
if err := templates.GetRenderer().ExecuteFragment(w, "anime.gohtml", "watch_order", map[string]any{ if err := templates.GetRenderer().ExecuteFragment(w, "anime.gohtml", "watch_order", map[string]any{
"Relations": relations, "Relations": relations,
"AnimeID": id, "AnimeID": id,
"WatchlistMap": watchlistMap, "WatchlistMap": watchlistMap,
}); err != nil { }); err != nil {
log.Printf("render error: %v", err) log.Printf("render error: %v", err)
} }