Skip to content

Commit

Permalink
Break when we reach the end
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSteeples committed Apr 16, 2024
1 parent ac1ed8c commit 6b440ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FreeAgent/Client/ResourceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public async IAsyncEnumerable<TSingle> AllAsync(Action<RestRequest> customizeReq
{
yield return newItem;
}

if (newItems.Count < PageSize)
break;
}
else
{
Expand Down

0 comments on commit 6b440ce

Please sign in to comment.