diff --git a/src/FilterLists.Agent/Infrastructure/Clients/AgentGitHubClient.cs b/src/FilterLists.Agent/Infrastructure/Clients/AgentGitHubClient.cs index e22134e0f..89cd098b0 100644 --- a/src/FilterLists.Agent/Infrastructure/Clients/AgentGitHubClient.cs +++ b/src/FilterLists.Agent/Infrastructure/Clients/AgentGitHubClient.cs @@ -43,7 +43,7 @@ public async Task> GetAllIssues(RepositoryIssueRequest repo catch (ApiException ex) { _logger.LogError(ex, $"Failed getting all Issues{ExceptionMessageSuffix}"); - return new List(); + throw; } } @@ -57,7 +57,7 @@ public async Task CreateIssue(NewIssue newIssue) catch (ApiException ex) { _logger.LogError(ex, $"Failed creating Issue{ExceptionMessageSuffix}"); - return new Issue(); + throw; } } @@ -71,7 +71,7 @@ public async Task UpdateIssue(int issueNumber, IssueUpdate issueUpdate) catch (ApiException ex) { _logger.LogError(ex, $"Failed updating Issue{ExceptionMessageSuffix}"); - return new Issue(); + throw; } } }