mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Ran formatter and fixed some lint issues
This commit is contained in:
@@ -22,7 +22,7 @@ func (rs studioRoutes) Routes() chi.Router {
|
||||
}
|
||||
|
||||
func (rs studioRoutes) Image(w http.ResponseWriter, r *http.Request) {
|
||||
studio := r.Context().Value("studio").(*models.Studio)
|
||||
studio := r.Context().Value(studioKey).(*models.Studio)
|
||||
_, _ = w.Write(studio.Image)
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ func StudioCtx(next http.Handler) http.Handler {
|
||||
return
|
||||
}
|
||||
|
||||
ctx := context.WithValue(r.Context(), "studio", studio)
|
||||
ctx := context.WithValue(r.Context(), studioKey, studio)
|
||||
next.ServeHTTP(w, r.WithContext(ctx))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user