mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-05 04:57:37 +01:00
Fix avoid_slow_async_io lint warning
This commit is contained in:
@@ -214,7 +214,7 @@ Future<void> deletePowerSyncDatabaseFile() async {
|
||||
for (final suffix in ['', '-wal', '-shm', '-journal']) {
|
||||
final file = File('$path$suffix');
|
||||
try {
|
||||
if (await file.exists()) {
|
||||
if (file.existsSync()) {
|
||||
await file.delete();
|
||||
}
|
||||
} catch (e, s) {
|
||||
|
||||
Reference in New Issue
Block a user