Remove unuused parameters

This commit removes names for unusued parameters where they are no longer needed.
This commit is contained in:
Tom Wiesing 2024-04-08 22:57:25 +02:00
parent b45233b87c
commit 8ad8cf7994
No known key found for this signature in database
24 changed files with 30 additions and 30 deletions

View file

@ -57,7 +57,7 @@ func (home *Home) HandleRoute(ctx context.Context, route string) (http.Handler,
}), nil
}
func (home *Home) serveWissKI(w http.ResponseWriter, slug string, r *http.Request) {
func (home *Home) serveWissKI(w http.ResponseWriter, slug string, _ *http.Request) {
if _, ok := home.dependencies.ListInstances.Names()[slug]; !ok {
// Get(nil) guaranteed to work by precondition
w.WriteHeader(http.StatusNotFound)

View file

@ -47,7 +47,7 @@ type publicContext struct {
const logoHTML = template.HTML(`<img src="/logo.svg" alt="WissKI Distillery Logo" class="biglogo">`)
func (home *Home) publicHandler(ctx context.Context) http.Handler {
func (home *Home) publicHandler(context.Context) http.Handler {
config := component.GetStill(home).Config.Home
tpl := publicTemplate.Prepare(

View file

@ -10,7 +10,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
)
func (home *Home) loadRedirect(ctx context.Context) (redirect Redirect, err error) {
func (home *Home) loadRedirect(context.Context) (redirect Redirect, err error) {
if redirect.Overrides == nil {
redirect.Overrides = make(map[string]string)
}