diff --git a/src/OpenTelemetry/Internal/ConfigurationExtensions.cs b/src/OpenTelemetry/Internal/ConfigurationExtensions.cs index 1488193a19b..08d95f80e7f 100644 --- a/src/OpenTelemetry/Internal/ConfigurationExtensions.cs +++ b/src/OpenTelemetry/Internal/ConfigurationExtensions.cs @@ -67,7 +67,6 @@ public static bool TryGetUriValue( if (!Uri.TryCreate(stringValue, UriKind.Absolute, out value)) { OpenTelemetrySdkEventSource.Log.InvalidEnvironmentVariable(key, stringValue); - value = default; return false; } @@ -88,7 +87,6 @@ public static bool TryGetIntValue( if (!int.TryParse(stringValue, NumberStyles.None, CultureInfo.InvariantCulture, out value)) { OpenTelemetrySdkEventSource.Log.InvalidEnvironmentVariable(key, stringValue); - value = default; return false; } @@ -113,7 +111,6 @@ public static bool TryGetValue( if (!tryParseFunc(stringValue!, out value)) { OpenTelemetrySdkEventSource.Log.InvalidEnvironmentVariable(key, stringValue); - value = default; return false; }