Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 631a649

Browse files
ReubenBondtjain-ms
authored andcommitted
Fix compiler warnings for unused variables
1 parent 0cbd7b2 commit 631a649

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/Services/Ordering/Ordering.API/Application/Commands/CreateOrderDraftCommandHandler.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@
77
public class CreateOrderDraftCommandHandler
88
: IRequestHandler<CreateOrderDraftCommand, OrderDraftDTO>
99
{
10-
private readonly IOrderRepository _orderRepository;
11-
private readonly IIdentityService _identityService;
12-
private readonly IMediator _mediator;
13-
14-
// Using DI to inject infrastructure persistence Repositories
15-
public CreateOrderDraftCommandHandler(IMediator mediator, IIdentityService identityService)
16-
{
17-
_identityService = identityService ?? throw new ArgumentNullException(nameof(identityService));
18-
_mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
19-
}
20-
2110
public Task<OrderDraftDTO> Handle(CreateOrderDraftCommand message, CancellationToken cancellationToken)
2211
{
2312

@@ -32,7 +21,6 @@ public Task<OrderDraftDTO> Handle(CreateOrderDraftCommand message, CancellationT
3221
}
3322
}
3423

35-
3624
public record OrderDraftDTO
3725
{
3826
public IEnumerable<OrderItemDTO> OrderItems { get; init; }

src/Services/Webhooks/Webhooks.API/IntegrationEvents/ProductPriceChangedIntegrationEventHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
public class ProductPriceChangedIntegrationEventHandler : IIntegrationEventHandler<ProductPriceChangedIntegrationEvent>
44
{
5-
public async Task Handle(ProductPriceChangedIntegrationEvent @event)
5+
public Task Handle(ProductPriceChangedIntegrationEvent @event)
66
{
7-
int i = 0;
7+
return Task.CompletedTask;
88
}
99
}

0 commit comments

Comments
 (0)