dart fix --apply

This commit is contained in:
Dieter Plaetinck
2024-10-15 22:56:32 +03:00
committed by Roland Geider
parent 9591d7cd11
commit 555f57d2de
2 changed files with 2 additions and 2 deletions

View File

@@ -248,7 +248,7 @@ class FlatpakMeta {
throw Exception(
'Metadata must include Github repository info if fetching releases from Github.');
}
return await _githubReleases!.getLatestReleaseAssets();
return _githubReleases!.getLatestReleaseAssets();
} else {
if (_localReleases == null) {
throw Exception('Metadata must include releases if not fetching releases from Github.');

View File

@@ -341,7 +341,7 @@ class NutritionPlansProvider with ChangeNotifier {
/// Loads the available ingredients from the local cache
Future<void> fetchIngredientsFromCache() async {
final ingredientDb = await database.select(database.ingredients).get();
log("Read ${ingredientDb.length} ingredients from db cache");
log('Read ${ingredientDb.length} ingredients from db cache');
if (ingredientDb.isNotEmpty) {
ingredients = ingredientDb.map((e) => Ingredient.fromJson(jsonDecode(e.data))).toList();
}