mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-27 05:45:51 +08:00
opt: unnecessary_non_null_assertion (#1762)
This commit is contained in:
committed by
GitHub
parent
b7a277a57c
commit
2b3ec77e92
@@ -53,13 +53,13 @@ class _LiveEmotePanelState extends State<LiveEmotePanel>
|
||||
return switch (loadingState) {
|
||||
Loading() => loadingWidget,
|
||||
Success(:var response) =>
|
||||
response?.isNotEmpty == true
|
||||
response != null && response.isNotEmpty
|
||||
? Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: tabBarView(
|
||||
controller: _emotePanelController.tabController,
|
||||
children: response!.map(
|
||||
children: response.map(
|
||||
(item) {
|
||||
final emote = item.emoticons;
|
||||
if (emote == null || emote.isEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user