Skip to content

Commit

Permalink
remove value = default
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyMothra committed Jan 21, 2023
1 parent 94decc2 commit a399c88
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/OpenTelemetry/Internal/ConfigurationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -113,7 +111,6 @@ public static bool TryGetValue<T>(
if (!tryParseFunc(stringValue!, out value))
{
OpenTelemetrySdkEventSource.Log.InvalidEnvironmentVariable(key, stringValue);
value = default;
return false;
}

Expand Down

0 comments on commit a399c88

Please sign in to comment.