linter: fix var name

This commit is contained in:
A.Unger
2021-08-18 11:25:44 +02:00
parent 1dd4644370
commit 0f0d305f6d
+3 -3
View File
@@ -35,10 +35,10 @@ func AccessLog(logger log.Logger) func(http.Handler) http.Handler {
// ExtractRequestID extracts the request ID from the context. Since we now use the go-chi middleware to write the request
// id, this is propagated using the context, therefore read it from there.
func ExtractRequestID(ctx context.Context) string {
var requestId string
var rid string
if v, ok := ctx.Value(chimiddleware.RequestIDKey).(string); ok {
requestId = v
rid = v
}
return requestId
return rid
}