mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-28 22:35:54 +08:00
opt: unnecessary_non_null_assertion (#1762)
This commit is contained in:
committed by
GitHub
parent
b7a277a57c
commit
2b3ec77e92
@@ -39,7 +39,7 @@ class _WhisperBlockPageState extends State<WhisperBlockPage> {
|
||||
return switch (loadingState) {
|
||||
Loading() => loadingWidget,
|
||||
Success(:var response) =>
|
||||
response?.isNotEmpty == true
|
||||
response != null && response.isNotEmpty
|
||||
? Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@@ -75,7 +75,7 @@ class _WhisperBlockPageState extends State<WhisperBlockPage> {
|
||||
child: Wrap(
|
||||
spacing: 12,
|
||||
runSpacing: 12,
|
||||
children: response!
|
||||
children: response
|
||||
.map(
|
||||
(e) => SearchText(
|
||||
text: e.keyword,
|
||||
|
||||
Reference in New Issue
Block a user