From 9eb4b17b349df431cffe3f3f7a32f90a21ea5678 Mon Sep 17 00:00:00 2001 From: Eli-Class Date: Thu, 29 Jan 2026 09:48:50 +0000 Subject: [PATCH] writer bug --- lib/dat/writer.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/dat/writer.ts b/lib/dat/writer.ts index f7a2338..9dbe1fd 100644 --- a/lib/dat/writer.ts +++ b/lib/dat/writer.ts @@ -47,9 +47,6 @@ export class DataWriter { const isNew = !fs.existsSync(this.dataPath); // Index file 은 초기화인데, 신규파일 혹은 강제 클리어가 아니라면 - if (writtenCount === 0 && !(isNew || this.forceTruncate)) { - throw new Error(`Index file & Data File is invalid ${this.indexPath} is initial but ${this.dataPath} is exists`); - } if (writtenCount > 0 && isNew) { throw new Error(`Index file & Data File is invalid data of ${this.indexPath} | ${writtenCount} is exists but ${this.dataPath} is not exists`); }