Skip to content

Commit

Permalink
use declare and assign syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Kelly committed Jan 18, 2024
1 parent 4caa6f4 commit 65f9183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/messaging/grpc_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (p *proxy) intercept(ctx context.Context, fullName string) (context.Context
outCtx = p.telemetryFn(outCtx)
outCtx = metadata.AppendToOutgoingContext(outCtx, invokev1.CallerIDHeader, p.appID, invokev1.CalleeIDHeader, target.id)

var appMetadataToken = security.GetAppToken()
appMetadataToken := security.GetAppToken()
if appMetadataToken != "" {
outCtx = metadata.AppendToOutgoingContext(outCtx, securityConsts.APITokenHeader, appMetadataToken)
}
Expand Down

0 comments on commit 65f9183

Please sign in to comment.