Skip to content

Commit

Permalink
Merge pull request #53 from Evodim/fixes/entityTableClient-take-not-b…
Browse files Browse the repository at this point in the history
…reaked

 Take extension not breaked
  • Loading branch information
medevod authored May 22, 2023
2 parents d3b1f8a + 8e59ab8 commit 2b76486
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,11 @@ public static async IAsyncEnumerable<IEnumerable<T>> TakeAsync<T>(this IAsyncEnu
{
yield return asyncEntity;
}
else
if (took >= take)
else
{
yield return asyncEntity.Take(asyncEntity.Count()- (took - take) );

}
else
yield break;
yield return asyncEntity.Take(asyncEntity.Count() - (took - take));
yield break;
}
}
}
}
Expand Down

0 comments on commit 2b76486

Please sign in to comment.