mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-14 01:03:27 +01:00
[Widgets]: cleanup: refactored to use guard-else flow instead of if-else flow
This commit is contained in:
@@ -18,6 +18,11 @@ public class PaginationDataHolder {
|
||||
self.currentPageindex = startPageIndex
|
||||
}
|
||||
|
||||
init(other: PaginationDataHolder) {
|
||||
self.itemsPerPage = other.itemsPerPage
|
||||
self.currentPageindex = other.currentPageindex
|
||||
}
|
||||
|
||||
public enum PageLimitResult{
|
||||
case null
|
||||
case empty
|
||||
|
||||
Reference in New Issue
Block a user