From dbd50d075dbc8fb9701a5832856e955867f2158e Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Thu, 8 Sep 2022 13:40:37 -0700 Subject: [PATCH] A bit of warning cleanup. --- src/OpenTelemetry/SdkOptions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenTelemetry/SdkOptions.cs b/src/OpenTelemetry/SdkOptions.cs index ebe7202c2c1..9697d20f6b4 100644 --- a/src/OpenTelemetry/SdkOptions.cs +++ b/src/OpenTelemetry/SdkOptions.cs @@ -46,7 +46,7 @@ public ConfigureSdkOptions(IConfiguration configuration) { Debug.Assert(configuration != null, "configuration was null"); - this.configuration = configuration; + this.configuration = configuration!; } public void Configure(SdkOptions options) @@ -56,12 +56,12 @@ public void Configure(SdkOptions options) var globalDisableFlagValue = this.configuration.GetValue("OTEL_SDK_DISABLED", false); if (globalDisableFlagValue) { - options.TracingEnabled = false; + options!.TracingEnabled = false; options.MetricsEnabled = false; options.LoggingEnabled = false; } - globalConfigureCallbacks?.Invoke(options); + globalConfigureCallbacks?.Invoke(options!); } } }