Fix avoid_slow_async_io lint warning

This commit is contained in:
Roland Geider
2026-06-15 22:48:11 +02:00
parent 177a48d6c7
commit 341dec6d99

View File

@@ -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) {