Skip to content

Commit d457a92

Browse files
Minor warning fixed
1 parent d26a5b2 commit d457a92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/screens/ai_home.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,9 @@ class _AiHomeState extends State<AiHome> {
206206
void _retryLoading(int index) {
207207
if (index < 0 ||
208208
index >= _controllers.length ||
209-
_controllers[index] == null)
209+
_controllers[index] == null) {
210210
return;
211+
}
211212
setState(() {
212213
_errorMessages[index] = null;
213214
_isLoadingList[index] = true;
@@ -220,8 +221,9 @@ class _AiHomeState extends State<AiHome> {
220221
void _reloadPage(int index) {
221222
if (index < 0 ||
222223
index >= _controllers.length ||
223-
_controllers[index] == null)
224+
_controllers[index] == null) {
224225
return;
226+
}
225227
setState(() {
226228
_errorMessages[index] = null;
227229
_isLoadingList[index] = true;

0 commit comments

Comments
 (0)