diff --git a/electron/filesystem.ts b/electron/filesystem.ts index 8eb0c17a..c6f1b62e 100644 --- a/electron/filesystem.ts +++ b/electron/filesystem.ts @@ -119,7 +119,6 @@ export function fixLogs(character: string): void { const fd = fs.openSync(full, 'r+'); const indexPath = path.join(dir, `${file}.idx`); if(!fs.existsSync(indexPath)) { - fs.unlinkSync(full); continue; } const indexFd = fs.openSync(indexPath, 'r+'); @@ -318,4 +317,4 @@ export class SettingsStore implements Settings.Store { async set(key: K, value: Settings.Keys[K]): Promise { writeFile(path.join(getSettingsDir(), key), JSON.stringify(value)); } -} \ No newline at end of file +}