Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ssgueye2 committed Jun 16, 2023
1 parent 8d41fbc commit 1a6ae05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public override async Task DeleteDevice(string deviceId)
{
foreach (var principal in principals.Principals)
{
var detachPrincipal = await this.amazonIoTClient.DetachThingPrincipalAsync(new DetachThingPrincipalRequest
_ = await this.amazonIoTClient.DetachThingPrincipalAsync(new DetachThingPrincipalRequest
{
Principal = principal,
ThingName = device.Name
Expand All @@ -136,7 +136,7 @@ public override async Task DeleteDevice(string deviceId)
try
{
//Delete the thing type after detaching the principal
var deleteResponse = await this.amazonIoTClient.DeleteThingAsync(this.mapper.Map<DeleteThingRequest>(device));
_ = await this.amazonIoTClient.DeleteThingAsync(this.mapper.Map<DeleteThingRequest>(device));
}
catch (AmazonIoTException e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private async Task<Dictionary<string, int>> Count()
}
catch (ResourceNotFoundException e)
{
this.logger.LogInformation($"Cannot import device '{device.ThingName}' since it doesn't have related classic thing shadow");
this.logger.LogInformation($"Cannot import device '{device.ThingName}' since it doesn't have related classic thing shadow", e);
continue;
}
catch (AmazonIotDataException e)
Expand Down

0 comments on commit 1a6ae05

Please sign in to comment.