Skip to content

Commit c6fd668

Browse files
committed
fix Route.SetResourceId
1 parent 9a62ffa commit c6fd668

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

JsonApiDotNetCore/Routing/Route.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ public Route(Type model, string requestMethod, PathString remainingPath, RouteDe
2222

2323
private void SetResourceId()
2424
{
25-
if(RemainingPath.HasValue)
26-
{
27-
ResourceId = RemainingPath.ToUriComponent().Trim('/');
28-
}
29-
ResourceId = null;
25+
ResourceId = RemainingPath.HasValue ? RemainingPath.ToUriComponent().Trim('/') : null;
3026
}
31-
3227
}
3328
}

0 commit comments

Comments
 (0)