Skip to content

Commit

Permalink
#1034: small code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
rypdal committed Mar 29, 2023
1 parent 5ce87e1 commit 5bed7c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ internal static (PropagationContext ParentContext, IEnumerable<ActivityLink> Lin
var links = new List<ActivityLink>();
foreach (var record in sqsEvent.Records)
{
var context = ExtractParentContext(record);
var context = ReferenceEquals(record, parentRecord) ? parentContext : ExtractParentContext(record);
if (context != default)
{
links.Add(new ActivityLink(context.ActivityContext));
Expand Down

0 comments on commit 5bed7c6

Please sign in to comment.