Skip to content

Commit

Permalink
A bit of warning cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch committed Sep 8, 2022
1 parent 18bf490 commit dbd50d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OpenTelemetry/SdkOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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!);
}
}
}
Expand Down

0 comments on commit dbd50d0

Please sign in to comment.