Skip to content

Commit

Permalink
[TT-12741] Drop ineffectual assignment to r
Browse files Browse the repository at this point in the history
  • Loading branch information
buraksezer committed Dec 17, 2024
1 parent 302fe9d commit 3b08d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/httpctx/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var selfLoopingValue = NewValue[bool](ctx.SelfLooping)

// SetSelfLooping updates the request context with a boolean value indicating whether the request is in a self-looping state.
func SetSelfLooping(r *http.Request, value bool) {
r = selfLoopingValue.Set(r, value)
selfLoopingValue.Set(r, value)
}

// IsSelfLooping returns true if the request is flagged as self-looping, indicating it originates and targets the same service.
Expand Down

0 comments on commit 3b08d1e

Please sign in to comment.