Skip to content

Commit

Permalink
chore: remove unused method parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mu88 committed Jul 6, 2023
1 parent adf35d5 commit a297d8c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ScreenshotCreator.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,23 @@
async (HttpContext httpContext, ImageProcessor imageProcessor, Creator creator, IOptions<ScreenshotOptions> options) =>
{
await creator.CreateScreenshotAsync(options.Value.Width, options.Value.Height);
return await ReturnImageOrNotFoundAsync(httpContext, imageProcessor, options);
return await ReturnImageOrNotFoundAsync(httpContext, imageProcessor);
});
app.MapGet("createImageWithSizeNow",
async (uint width,
uint height,
HttpContext httpContext,
ImageProcessor imageProcessor,
Creator creator,
IOptions<ScreenshotOptions> options) =>
Creator creator) =>
{
await creator.CreateScreenshotAsync(width, height);
return await ReturnImageOrNotFoundAsync(httpContext, imageProcessor, options);
return await ReturnImageOrNotFoundAsync(httpContext, imageProcessor);
});

app.Run();

async Task<IResult> ReturnImageOrNotFoundAsync(HttpContext httpContext,
ImageProcessor imageProcessor,
IOptions<ScreenshotOptions> options,
bool blackAndWhite = false,
bool asWaveshareBytes = false)
{
Expand Down

0 comments on commit a297d8c

Please sign in to comment.