Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilkumarpilli committed Dec 3, 2024
1 parent 434c66d commit c721c5a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration/v2/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ type integrationContext struct {

func SetHeaderInfo(ctx context.Context, h header.Info) context.Context {
iCtx, ok := ctx.Value(contextKey).(*integrationContext)
if ok {
iCtx.header = h
if !ok {
return ctx
}
return ctx
iCtx.header = h
return context.WithValue(ctx, contextKey, iCtx)
}

func HeaderInfoFromContext(ctx context.Context) header.Info {
Expand Down

0 comments on commit c721c5a

Please sign in to comment.