mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
dropped a bunch of async/await usages
There's also some differences here between using IReadOnlyCollection and IReadOnlyList. We should decide on one and be consistent
This commit is contained in:
@@ -15,9 +15,9 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
|
||||
/// <returns>A <see cref="IReadOnlyPagedCollection{Notification}"/> of <see cref="Notification"/>.</returns>
|
||||
public async Task<IReadOnlyCollection<Notification>> GetAllForCurrent()
|
||||
public Task<IReadOnlyList<Notification>> GetAllForCurrent()
|
||||
{
|
||||
return await ApiConnection.GetAll<Notification>(ApiUrls.Notifications());
|
||||
return ApiConnection.GetAll<Notification>(ApiUrls.Notifications());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -25,9 +25,9 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <exception cref="AuthorizationException">Thrown if the client is not authenticated.</exception>
|
||||
/// <returns>A <see cref="IReadOnlyPagedCollection{Notification}"/> of <see cref="Notification"/>.</returns>
|
||||
public async Task<IReadOnlyCollection<Notification>> GetAllForRepository(string owner, string name)
|
||||
public Task<IReadOnlyList<Notification>> GetAllForRepository(string owner, string name)
|
||||
{
|
||||
return await ApiConnection.GetAll<Notification>(ApiUrls.Notifications(owner, name));
|
||||
return ApiConnection.GetAll<Notification>(ApiUrls.Notifications(owner, name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user