Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeWills committed Oct 3, 2021
1 parent fcd2eb7 commit ff4ff8c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/OpenTelemetry/Trace/TracerProviderSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ internal TracerProviderSdk(
{
this.legacyActivityWildcardMode = true;
this.legacyActivityWildcardModeRegex = GetWildcardRegex(legacyActivityOperationNames.Keys);

break;
}
}
Expand Down Expand Up @@ -242,10 +241,8 @@ bool ShouldListenToLegacyActivity(Activity activity)
{
return this.legacyActivityWildcardModeRegex.IsMatch(activity.OperationName);
}
else
{
return legacyActivityOperationNames.ContainsKey(activity.OperationName);
}

return legacyActivityOperationNames.ContainsKey(activity.OperationName);
}
}

Expand Down

0 comments on commit ff4ff8c

Please sign in to comment.