Skip to content

Commit b6d9866

Browse files
committed
Resharper: Fix new warning about usage of collection expressions
1 parent b0fff30 commit b6d9866

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/JsonApiDotNetCoreMongoDbTests/IntegrationTests/AtomicOperations/BaseForAtomicOperationsTestsThatChangeOptions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ private static void CopyPropertyValues(JsonApiOptions source, JsonApiOptions des
4848
{
4949
foreach (PropertyInfo property in PropertyCache)
5050
{
51-
property.SetMethod!.Invoke(destination, new[]
52-
{
53-
property.GetMethod!.Invoke(source, null)
54-
});
51+
property.SetMethod!.Invoke(destination, [property.GetMethod!.Invoke(source, null)]);
5552
}
5653
}
5754
}

0 commit comments

Comments
 (0)