Skip to content

Commit 09697d8

Browse files
committed
fix: formatting
1 parent 399dcdc commit 09697d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/JsonApiDotNetCore/Middleware/IncomingTypeMatchFilter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ public void OnActionExecuting(ActionExecutingContext context)
3232
{
3333
return;
3434
}
35-
35+
3636
var request = context.HttpContext.Request;
37-
3837
if (request.Method == HttpMethods.Patch || request.Method == HttpMethods.Post)
3938
{
4039
var deserializedType = GetDeserializedType(context);
@@ -53,7 +52,6 @@ public void OnActionExecuting(ActionExecutingContext context)
5352
private Type GetDeserializedType(ActionExecutingContext context)
5453
{
5554
var deserializedValue = context.ActionArguments.LastOrDefault().Value;
56-
5755
if (deserializedValue is IList resourceCollection && resourceCollection.Any())
5856
{
5957
return resourceCollection[0].GetType();

0 commit comments

Comments
 (0)