Skip to content

Commit 76dbf36

Browse files
author
Bart Koelman
committed
Automated Code cleanup
1 parent 0b15d45 commit 76dbf36

File tree

9 files changed

+10
-18
lines changed

9 files changed

+10
-18
lines changed

src/Examples/NoEntityFrameworkExample/Services/WorkItemService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ public async Task<WorkItem> CreateAsync(WorkItem resource, CancellationToken can
7373
return workItems.Single();
7474
}
7575

76-
public Task AddToToManyRelationshipAsync(int leftId, string relationshipName, ISet<IIdentifiable> rightResourceIds,
77-
CancellationToken cancellationToken)
76+
public Task AddToToManyRelationshipAsync(int leftId, string relationshipName, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken)
7877
{
7978
throw new NotImplementedException();
8079
}

src/JsonApiDotNetCore/Repositories/IResourceRepositoryAccessor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ Task AddToToManyRelationshipAsync<TResource, TId>(TId leftId, ISet<IIdentifiable
7575
/// <summary>
7676
/// Invokes <see cref="IResourceWriteRepository{TResource,TId}.RemoveFromToManyRelationshipAsync" />.
7777
/// </summary>
78-
Task RemoveFromToManyRelationshipAsync<TResource>(TResource leftResource, ISet<IIdentifiable> rightResourceIds,
79-
CancellationToken cancellationToken)
78+
Task RemoveFromToManyRelationshipAsync<TResource>(TResource leftResource, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken)
8079
where TResource : class, IIdentifiable;
8180
}
8281
}

src/JsonApiDotNetCore/Repositories/ResourceRepositoryAccessor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ public async Task SetRelationshipAsync<TResource>(TResource leftResource, object
106106
}
107107

108108
/// <inheritdoc />
109-
public async Task AddToToManyRelationshipAsync<TResource, TId>(TId leftId, ISet<IIdentifiable> rightResourceIds,
110-
CancellationToken cancellationToken)
109+
public async Task AddToToManyRelationshipAsync<TResource, TId>(TId leftId, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken)
111110
where TResource : class, IIdentifiable<TId>
112111
{
113112
dynamic repository = GetWriteRepository(typeof(TResource));

src/JsonApiDotNetCore/Resources/Annotations/RelationshipAttribute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public abstract class RelationshipAttribute : ResourceFieldAttribute
4141
public Type LeftType { get; internal set; }
4242

4343
/// <summary>
44-
/// The type this relationship points to. This does not necessarily match the relationship property type. In the case of a <see cref="HasManyAttribute" /> relationship,
45-
/// this value will be the collection element type.
44+
/// The type this relationship points to. This does not necessarily match the relationship property type. In the case of a
45+
/// <see cref="HasManyAttribute" /> relationship, this value will be the collection element type.
4646
/// </summary>
4747
/// <example>
4848
/// <code><![CDATA[

src/JsonApiDotNetCore/Services/IAddToRelationshipService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public interface IAddToRelationshipService<TResource, in TId>
3434
/// <param name="cancellationToken">
3535
/// Propagates notification that request handling should be canceled.
3636
/// </param>
37-
Task AddToToManyRelationshipAsync(TId leftId, string relationshipName, ISet<IIdentifiable> rightResourceIds,
38-
CancellationToken cancellationToken);
37+
Task AddToToManyRelationshipAsync(TId leftId, string relationshipName, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken);
3938
}
4039
}

src/JsonApiDotNetCore/Services/IRemoveFromRelationshipService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public interface IRemoveFromRelationshipService<TResource, in TId>
3232
/// <param name="cancellationToken">
3333
/// Propagates notification that request handling should be canceled.
3434
/// </param>
35-
Task RemoveFromToManyRelationshipAsync(TId leftId, string relationshipName, ISet<IIdentifiable> rightResourceIds,
36-
CancellationToken cancellationToken);
35+
Task RemoveFromToManyRelationshipAsync(TId leftId, string relationshipName, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken);
3736
}
3837
}

test/JsonApiDotNetCoreExampleTests/IntegrationTests/IdObfuscation/ObfuscatedIdentifiableController.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ public Task<IActionResult> PatchAsync(string id, [FromBody] TResource resource,
6969
}
7070

7171
[HttpPatch("{id}/relationships/{relationshipName}")]
72-
public Task<IActionResult> PatchRelationshipAsync(string id, string relationshipName, [FromBody] object rightValue,
73-
CancellationToken cancellationToken)
72+
public Task<IActionResult> PatchRelationshipAsync(string id, string relationshipName, [FromBody] object rightValue, CancellationToken cancellationToken)
7473
{
7574
int idValue = _codec.Decode(id);
7675
return base.PatchRelationshipAsync(idValue, relationshipName, rightValue, cancellationToken);

test/JsonApiDotNetCoreExampleTests/IntegrationTests/MultiTenancy/MultiTenantResourceService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ public override async Task<TResource> UpdateAsync(TId id, TResource resource, Ca
6060
return await base.UpdateAsync(id, resource, cancellationToken);
6161
}
6262

63-
public override async Task SetRelationshipAsync(TId leftId, string relationshipName, object rightValue,
64-
CancellationToken cancellationToken)
63+
public override async Task SetRelationshipAsync(TId leftId, string relationshipName, object rightValue, CancellationToken cancellationToken)
6564
{
6665
await AssertRightResourcesExistAsync(rightValue, cancellationToken);
6766

test/JsonApiDotNetCoreExampleTests/IntegrationTests/SoftDeletion/SoftDeletionAwareResourceService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ public override async Task<TResource> UpdateAsync(TId id, TResource resource, Ca
5959
return await base.UpdateAsync(id, resource, cancellationToken);
6060
}
6161

62-
public override async Task SetRelationshipAsync(TId leftId, string relationshipName, object rightValue,
63-
CancellationToken cancellationToken)
62+
public override async Task SetRelationshipAsync(TId leftId, string relationshipName, object rightValue, CancellationToken cancellationToken)
6463
{
6564
if (IsSoftDeletable(_request.Relationship.RightType))
6665
{

0 commit comments

Comments
 (0)