Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 48e1f78

Browse files
Returning an empty list to make the method easier to use
1 parent d64ac94 commit 48e1f78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GitHub.Api/Application/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private async Task<IList<Organization>> GetOrganizationInternal()
226226

227227
if (!await LoadKeychainInternal())
228228
{
229-
return null;
229+
return new List<Organization>();
230230
}
231231

232232
var organizations = await githubClient.Organization.GetAllForCurrent();

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PUblishView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private void PopulateView()
8181

8282
Client.GetOrganizations(organizations => {
8383

84-
var organizationLogins = (organizations ?? Enumerable.Empty<Organization>())
84+
var organizationLogins = organizations
8585
.OrderBy(organization => organization.Login)
8686
.Select(organization => organization.Login);
8787

0 commit comments

Comments
 (0)