mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 00:56:16 +00:00
chore(lint) make the linter happy
This commit is contained in:
@@ -908,7 +908,6 @@ func setupRouter(server *handlers.Server) *chi.Mux {
|
||||
r.Post("/v1/favorite/{stationID}", server.HandleTuneInFavorite)
|
||||
r.Delete("/v1/favorite/{stationID}", server.HandleTuneInDeleteFavorite)
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
// Orion (LOCAL_INTERNET_RADIO) lives at the top level — the BMX registry
|
||||
|
||||
@@ -156,6 +156,7 @@ func registerRoutes(mux *http.ServeMux, overrides map[string][]byte) {
|
||||
func serveFixtureOr(embedPath string, override []byte) http.HandlerFunc {
|
||||
if override != nil {
|
||||
snapshot := append([]byte(nil), override...)
|
||||
|
||||
return func(w http.ResponseWriter, _ *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/xml; charset=utf-8")
|
||||
_, _ = w.Write(snapshot)
|
||||
|
||||
Reference in New Issue
Block a user