mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt: unnecessary_non_null_assertion (#1762)
This commit is contained in:
committed by
GitHub
parent
b7a277a57c
commit
2b3ec77e92
@@ -27,12 +27,12 @@ class RcmdController extends CommonListController {
|
||||
@override
|
||||
void handleListResponse(List dataList) {
|
||||
if (enableSaveLastData && page == 0 && loadingState.value.isSuccess) {
|
||||
List? currentList = loadingState.value.data;
|
||||
if (currentList?.isNotEmpty == true) {
|
||||
final currentList = loadingState.value.data;
|
||||
if (currentList != null && currentList.isNotEmpty) {
|
||||
if (savedRcmdTip) {
|
||||
lastRefreshAt = dataList.length;
|
||||
}
|
||||
if (currentList!.length > 500) {
|
||||
if (currentList.length > 500) {
|
||||
currentList.removeRange(50, currentList.length);
|
||||
}
|
||||
dataList.addAll(currentList);
|
||||
|
||||
Reference in New Issue
Block a user