diff --git a/cmd/main.go b/cmd/main.go index 512ec2f..ecb01db 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -88,12 +88,9 @@ func main() { } -type ClientString string - func withGitlabContext(next http.HandlerFunc, c Client) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - var cl ClientString = "client" - ctx := context.WithValue(context.Background(), cl, c) + ctx := context.WithValue(context.Background(), "client", c) //nolint:all next.ServeHTTP(w, r.WithContext(ctx)) }) }