Skip to content

Commit 0c74943

Browse files
committed
Fix new compiler warning
1 parent cc09de8 commit 0c74943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Microsoft.Windows.CsWin32.Tests/GeneratorConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ void AddPathsProperty(string name, ImmutableArray<string> paths)
2828
}
2929
}
3030

31-
private static ImmutableArray<string> CollectAssemblyMetadata(string name) => [.. typeof(GeneratorTests).Assembly.GetCustomAttributes<AssemblyMetadataAttribute>().Where(metadata => metadata.Key == name && metadata.Value is not null).Select(metadata => metadata.Value)];
31+
private static ImmutableArray<string> CollectAssemblyMetadata(string name) => [.. typeof(GeneratorTests).Assembly.GetCustomAttributes<AssemblyMetadataAttribute>().Where(metadata => metadata.Key == name && metadata.Value is not null).Select(metadata => metadata.Value!)];
3232
}

0 commit comments

Comments
 (0)