Skip to content

Commit 0185311

Browse files
committed
Fixed invalid name, due to copy/paste
1 parent 1ff2456 commit 0185311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonApiDotNetCore/Repositories/ResourceRepositoryAccessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ protected object ResolveReadRepository(Type resourceClrType)
126126

127127
protected virtual object ResolveReadRepository(ResourceType resourceType)
128128
{
129-
Type resourceDefinitionType = typeof(IResourceReadRepository<,>).MakeGenericType(resourceType.ClrType, resourceType.IdentityClrType);
130-
return _serviceProvider.GetRequiredService(resourceDefinitionType);
129+
Type repositoryType = typeof(IResourceReadRepository<,>).MakeGenericType(resourceType.ClrType, resourceType.IdentityClrType);
130+
return _serviceProvider.GetRequiredService(repositoryType);
131131
}
132132

133133
private object GetWriteRepository(Type resourceClrType)

0 commit comments

Comments
 (0)