Skip to content

Commit

Permalink
fix: Unreachable case
Browse files Browse the repository at this point in the history
  • Loading branch information
nikcio committed May 5, 2024
1 parent 65b317d commit 167057d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nikcio.UHeadless/Defaults/PaginationResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public PaginationResult(IEnumerable<T> items, int page, int pageSize)
PageSize = pageSize;
TotalItems = items.Count();

int skip = Page == 0 ? 0 : (Page - 1) * PageSize;
int skip = (Page - 1) * PageSize;
Items = items.Skip(skip).Take(PageSize).ToList();
}

Expand Down

0 comments on commit 167057d

Please sign in to comment.