Skip to content

Commit

Permalink
Tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch committed Sep 8, 2022
1 parent 40add0d commit 18bf490
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/OpenTelemetry/SdkOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ public static void RegisterConfigureCallback(Action<SdkOptions> configure)
globalConfigureCallbacks += configure ?? throw new ArgumentNullException(nameof(configure));
}

internal static void InvokeConfigureCallbacks(SdkOptions options)
{
Debug.Assert(options != null, "options was null");

globalConfigureCallbacks?.Invoke(options);
}

internal sealed class ConfigureSdkOptions : IConfigureOptions<SdkOptions>
{
private readonly IConfiguration configuration;
Expand All @@ -68,7 +61,7 @@ public void Configure(SdkOptions options)
options.LoggingEnabled = false;
}

InvokeConfigureCallbacks(options);
globalConfigureCallbacks?.Invoke(options);
}
}
}
Expand Down

0 comments on commit 18bf490

Please sign in to comment.