Rename variables

This commit is contained in:
vishnukvmd 2024-05-01 19:36:09 +05:30
parent bc32c89d77
commit 11d6cdd7c1

View File

@ -133,13 +133,13 @@ class EmbeddingsDB {
} }
Future<void> _clearDeprecatedStores(Directory dir) async { Future<void> _clearDeprecatedStores(Directory dir) async {
final deprecatedStore = Directory(dir.path + "/object-box-store"); final deprecatedObjectBox = Directory(dir.path + "/object-box-store");
if (await deprecatedStore.exists()) { if (await deprecatedObjectBox.exists()) {
await deprecatedStore.delete(recursive: true); await deprecatedObjectBox.delete(recursive: true);
} }
final deprecatedDB = File(dir.path + "/default.isar"); final deprecatedIsar = File(dir.path + "/default.isar");
if (await deprecatedDB.exists()) { if (await deprecatedIsar.exists()) {
await deprecatedDB.delete(); await deprecatedIsar.delete();
} }
} }