Skip to content

Commit

Permalink
fix: collection initialization simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
lwestfall committed May 13, 2024
1 parent c926b32 commit 9d276cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Server/WebApi/Mapping/MappingProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private void ApplyMappingsFromAssembly(Assembly assembly, Type mappedType, strin

if (methodInfo is not null)
{
methodInfo.Invoke(instance, new object[] { this });
methodInfo.Invoke(instance, [this]);
}
else
{
Expand All @@ -40,7 +40,7 @@ private void ApplyMappingsFromAssembly(Assembly assembly, Type mappedType, strin
{
var interfaceMethodInfo = @interface.GetMethod(mappingMethodName, argumentTypes);

interfaceMethodInfo?.Invoke(instance, new object[] { this });
interfaceMethodInfo?.Invoke(instance, [this]);
}
}
}
Expand Down

0 comments on commit 9d276cf

Please sign in to comment.