mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-28 14:25:55 +08:00
opt: unnecessary_non_null_assertion (#1762)
This commit is contained in:
committed by
GitHub
parent
b7a277a57c
commit
2b3ec77e92
@@ -67,8 +67,8 @@ class _FavPageState extends State<FavPage> with SingleTickerProviderStateMixin {
|
||||
_favController.loadingState.value.isSuccess
|
||||
? _favController.loadingState.value.data
|
||||
: null;
|
||||
if (list?.isNotEmpty == true) {
|
||||
list!.insert(1, data);
|
||||
if (list != null && list.isNotEmpty) {
|
||||
list.insert(1, data);
|
||||
_favController.loadingState.refresh();
|
||||
} else {
|
||||
_favController.loadingState.value = Success([data]);
|
||||
|
||||
Reference in New Issue
Block a user