mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: use cascade (#812)
This commit is contained in:
committed by
GitHub
parent
877732e1e7
commit
6f69a45195
@@ -102,9 +102,7 @@ class BangumiController extends CommonListController<
|
||||
followState.value = LoadingState.success(list);
|
||||
followController?.animToTop();
|
||||
} else if (followState.value is Success) {
|
||||
List<BangumiListItemModel> currentList =
|
||||
(followState.value as Success).response;
|
||||
currentList.addAll(list!);
|
||||
final currentList = followState.value.data!..addAll(list!);
|
||||
if (currentList.length >= followCount.value) {
|
||||
followEnd = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user