Просмотр исходного кода

refactor(storage): remove not found wire serializer (#27416)

Kit Langton 4 месяцев назад
Родитель
Сommit
681594b551
1 измененных файлов с 0 добавлено и 7 удалено
  1. 0 7
      packages/opencode/src/storage/storage.ts

+ 0 - 7
packages/opencode/src/storage/storage.ts

@@ -20,13 +20,6 @@ export class NotFoundError extends Schema.TaggedErrorClass<NotFoundError>()("Not
   static isInstance(input: unknown): input is NotFoundError {
     return input instanceof NotFoundError
   }
-
-  toObject() {
-    return {
-      name: "NotFoundError" as const,
-      data: { message: this.message },
-    }
-  }
 }
 
 export type Error = AppFileSystem.Error | NotFoundError