Skip to content

Commit

Permalink
fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Oct 6, 2024
1 parent 1be426a commit 84e02b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Moonglade.Pingback/PingbackSender.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging;
using Moonglade.Utils;

namespace Moonglade.Pingback;

public class PingbackSender(HttpClient httpClient,
IPingbackRequestor requestor,
IConfiguration configuration,
ILogger<PingbackSender> logger)
: IPingbackSender
{
Expand Down
1 change: 0 additions & 1 deletion src/Moonglade.Web/Controllers/ImageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class ImageController(IBlogImageStorage imageStorage,
IBlogConfig blogConfig,
IMemoryCache cache,
IFileNameGenerator fileNameGen,
IConfiguration configuration,
IOptions<ImageStorageSettings> imageStorageSettings,
CannonService cannonService)
: ControllerBase
Expand Down
4 changes: 2 additions & 2 deletions src/Moonglade.Webmention/WebmentionResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Moonglade.Webmention;

public class WebmentionResponse(WebmentionStatus Status)
public class WebmentionResponse(WebmentionStatus status)
{
public WebmentionStatus Status { get; set; }
public WebmentionStatus Status { get; set; } = status;
public MentionEntity MentionEntity { get; set; }

public static WebmentionResponse GenericError => new(WebmentionStatus.GenericError);
Expand Down

0 comments on commit 84e02b7

Please sign in to comment.