Skip to content

Commit

Permalink
Remove final warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Oct 10, 2021
1 parent ee16d23 commit cebf1ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/ImageSharp.Web/Middleware/ImageSharpMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private async Task ProcessRequestAsync(
ImageWorkerResult readResult = default;
try
{
readResult = await this.IsNewOrUpdatedAsync(sourceImageResolver, imageContext, key);
readResult = await this.IsNewOrUpdatedAsync(sourceImageResolver, key);
}
finally
{
Expand Down Expand Up @@ -433,7 +433,6 @@ private ValueTask StreamDisposeAsync(Stream stream)

private async Task<ImageWorkerResult> IsNewOrUpdatedAsync(
IImageResolver sourceImageResolver,
ImageContext imageContext,
string key)
{
// Pause until the write has been completed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void WebProcessingExtensions_GetBySupportedCommands()
ResizeWebProcessor.Height
};

var supportedProcessors = WebProcessingExtensions.GetBySupportedCommands(processors, commands).ToArray();
IImageWebProcessor[] supportedProcessors = WebProcessingExtensions.GetBySupportedCommands(processors, commands).ToArray();

Assert.Equal(2, supportedProcessors.Length);
Assert.IsType<ResizeWebProcessor>(supportedProcessors[0]);
Expand All @@ -46,7 +46,7 @@ public void WebProcessingExtensions_GetBySupportedCommands_Empty()

var commands = new List<string>();

var supportedProcessors = WebProcessingExtensions.GetBySupportedCommands(processors, commands).ToArray();
IImageWebProcessor[] supportedProcessors = WebProcessingExtensions.GetBySupportedCommands(processors, commands).ToArray();

Assert.Empty(supportedProcessors);
}
Expand Down

0 comments on commit cebf1ee

Please sign in to comment.