remove response writer from most admin handlers

This commit is contained in:
sentriz
2019-08-07 13:53:02 +01:00
parent 6d0fe80608
commit 9c2f2e381b
7 changed files with 128 additions and 97 deletions

View File

@@ -84,7 +84,7 @@ func (c *Controller) H(h subsonicHandler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
response := h(r)
if response == nil {
log.Println("error: non raw subsonic handler returned a nil response\n")
log.Println("error: non raw subsonic handler returned a nil response")
return
}
if err := writeResp(w, r, response); err != nil {