Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ linters:
- depguard
- errorlint
- exptostd
#- fatcontext
- fatcontext
#- gocritic
- godot
- govet
Expand Down
2 changes: 1 addition & 1 deletion route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (r *Router) handle(handlerName string, h http.HandlerFunc) httprouter.Handl
defer cancel()

for _, p := range params {
ctx = context.WithValue(ctx, param(p.Key), p.Value)
ctx = context.WithValue(ctx, param(p.Key), p.Value) //nolint:fatcontext
Comment thread
aknuds1 marked this conversation as resolved.
}
h(w, req.WithContext(ctx))
}
Expand Down
2 changes: 1 addition & 1 deletion route/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestContextWithValue(t *testing.T) {

ctx := r.Context()
for p, v := range params {
ctx = WithParam(ctx, p, v)
ctx = WithParam(ctx, p, v) //nolint:fatcontext
}
r = r.WithContext(ctx)
router.ServeHTTP(nil, r)
Expand Down
Loading