From ff4ff8c4cb849ad3f7b56df831eaf0c44be7be21 Mon Sep 17 00:00:00 2001 From: Blake Wills Date: Sat, 2 Oct 2021 19:58:56 +0100 Subject: [PATCH] Minor cleanup --- src/OpenTelemetry/Trace/TracerProviderSdk.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/OpenTelemetry/Trace/TracerProviderSdk.cs b/src/OpenTelemetry/Trace/TracerProviderSdk.cs index 240e8d7c3ba..5769459d946 100644 --- a/src/OpenTelemetry/Trace/TracerProviderSdk.cs +++ b/src/OpenTelemetry/Trace/TracerProviderSdk.cs @@ -56,7 +56,6 @@ internal TracerProviderSdk( { this.legacyActivityWildcardMode = true; this.legacyActivityWildcardModeRegex = GetWildcardRegex(legacyActivityOperationNames.Keys); - break; } } @@ -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); } }