Skip to content

Commit cebf1ee

Browse files
Remove final warnings.
1 parent ee16d23 commit cebf1ee

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/ImageSharp.Web/Middleware/ImageSharpMiddleware.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private async Task ProcessRequestAsync(
274274
ImageWorkerResult readResult = default;
275275
try
276276
{
277-
readResult = await this.IsNewOrUpdatedAsync(sourceImageResolver, imageContext, key);
277+
readResult = await this.IsNewOrUpdatedAsync(sourceImageResolver, key);
278278
}
279279
finally
280280
{
@@ -433,7 +433,6 @@ private ValueTask StreamDisposeAsync(Stream stream)
433433

434434
private async Task<ImageWorkerResult> IsNewOrUpdatedAsync(
435435
IImageResolver sourceImageResolver,
436-
ImageContext imageContext,
437436
string key)
438437
{
439438
// Pause until the write has been completed.

tests/ImageSharp.Web.Tests/Processors/WebProcessingExtensionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void WebProcessingExtensions_GetBySupportedCommands()
2929
ResizeWebProcessor.Height
3030
};
3131

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

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

4747
var commands = new List<string>();
4848

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

5151
Assert.Empty(supportedProcessors);
5252
}

0 commit comments

Comments
 (0)