mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
resolve CS8603 possible null ref return
This commit is contained in:
parent
6a70c4f44c
commit
06c42e72bc
1 changed files with 3 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ public async Task<IReadOnlyList<Issue>> GetAllIssues(RepositoryIssueRequest repo
|
|||
catch (ApiException ex)
|
||||
{
|
||||
_logger.LogError(ex, $"Failed getting all Issues{ExceptionMessageSuffix}");
|
||||
return null;
|
||||
return new List<Issue>();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ public async Task<Issue> CreateIssue(NewIssue newIssue)
|
|||
catch (ApiException ex)
|
||||
{
|
||||
_logger.LogError(ex, $"Failed creating Issue{ExceptionMessageSuffix}");
|
||||
return null;
|
||||
return new Issue();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ public async Task<Issue> UpdateIssue(int issueNumber, IssueUpdate issueUpdate)
|
|||
catch (ApiException ex)
|
||||
{
|
||||
_logger.LogError(ex, $"Failed updating Issue{ExceptionMessageSuffix}");
|
||||
return null;
|
||||
return new Issue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue