File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/JsonApiDotNetCore/Internal Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- using System . Reflection ;
1+ using System ;
22using System . Collections . Generic ;
33using System . Linq ;
4- using System ;
4+ using System . Reflection ;
55
66namespace JsonApiDotNetCore . Internal
77{
@@ -34,9 +34,9 @@ public string GetRelationshipName<TParent>(string relationshipName)
3434 {
3535 var entityType = typeof ( TParent ) ;
3636 return Entities
37- . SingleOrDefault ( e => e . EntityType == entityType )
38- . Relationships
39- . SingleOrDefault ( r => string . Equals ( r . PublicRelationshipName , relationshipName , StringComparison . OrdinalIgnoreCase ) )
37+ . SingleOrDefault ( e => e . EntityType == entityType )
38+ ? . Relationships
39+ . SingleOrDefault ( r => string . Equals ( r . PublicRelationshipName , relationshipName , StringComparison . OrdinalIgnoreCase ) )
4040 ? . InternalRelationshipName ;
4141 }
4242 }
You can’t perform that action at this time.
0 commit comments