From 866635fe1f944b0b47b8cbe5592f5a716bac1c04 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 17 Jun 2020 23:35:48 +0200 Subject: [PATCH] Oups --- Kyoo.Common/Utility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kyoo.Common/Utility.cs b/Kyoo.Common/Utility.cs index 8b068fff..01dc58d8 100644 --- a/Kyoo.Common/Utility.cs +++ b/Kyoo.Common/Utility.cs @@ -205,7 +205,7 @@ namespace Kyoo public static IEnumerable> BatchBy(this List list, int countPerList) { for (int i = 0; i < list.Count; i += countPerList) - yield return list.GetRange(i, Math.Min(list.Count - i, i + countPerList)); + yield return list.GetRange(i, Math.Min(list.Count - i, countPerList)); } } } \ No newline at end of file