Skip to content

Commit

Permalink
Warning cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch committed Jun 23, 2023
1 parent cdec06f commit 82b33b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenTelemetry/Logs/ILogger/OpenTelemetryLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ internal static void SetLogRecordSeverityFields(ref LogRecordData logRecordData,
{
try
{
PropertyDescriptorCollection itemProperties = TypeDescriptor.GetProperties(state);
PropertyDescriptorCollection itemProperties = TypeDescriptor.GetProperties(state!);

var attributeStorage = logRecord.AttributeStorage ??= new List<KeyValuePair<string, object?>>(itemProperties.Count);

Expand Down

0 comments on commit 82b33b4

Please sign in to comment.