Удалил ненужное

This commit is contained in:
Book Pauk
2022-10-27 19:12:43 +07:00
parent 78602a082b
commit c00754c4ca

View File

@@ -169,13 +169,7 @@ class WebWorker {
//пересоздаем БД из INPX если нужно
if (!await fs.pathExists(dbPath)) {
try {
await this.createDb(dbPath);
} catch (e) {
//при ошибке создания БД удалим ее, чтобы не работать с поломанной базой при следующем запуске
await fs.remove(dbPath);
throw e;
}
await this.createDb(dbPath);
utils.freeMemory();
}