Fixed code smells

This commit is contained in:
Imran Remtulla
2023-05-14 12:29:37 -04:00
parent f80c9ec33e
commit d212f13345
13 changed files with 8 additions and 16 deletions

View File

@@ -71,6 +71,7 @@ class AppsPageState extends State<AppsPage> {
});
return appsProvider.checkUpdates().catchError((e) {
showError(e, context);
return <App>[];
}).whenComplete(() {
setState(() {
refreshingSince = null;
@@ -379,6 +380,7 @@ class AppsPageState extends State<AppsPage> {
[listedApps[appIndex].app.id],
globalNavigatorKey.currentContext).catchError((e) {
showError(e, context);
return <String>[];
});
},
icon: Icon(
@@ -681,6 +683,7 @@ class AppsPageState extends State<AppsPage> {
settingsProvider: settingsProvider)
.catchError((e) {
showError(e, context);
return <String>[];
});
}
});