From bdebb5856310efd3628edb236f790968d94035fa Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Sun, 1 Sep 2024 01:22:17 +0330 Subject: [PATCH] refactor: Remove unnecessary debug flag --- packages/engine/src/alwatr-store.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/engine/src/alwatr-store.ts b/packages/engine/src/alwatr-store.ts index 6e034887..02f6ea73 100644 --- a/packages/engine/src/alwatr-store.ts +++ b/packages/engine/src/alwatr-store.ts @@ -428,12 +428,10 @@ export class AlwatrStore { * @param sync Indicates whether the write operation should be synchronous. * @returns A promise that resolves when the write operation is complete. */ - private async writeContext__(path: string | StoreFileStat, context: T): Promise { + private writeContext__(path: string | StoreFileStat, context: T): Promise { if (typeof path !== 'string') path = getStorePath(path); logger.logMethodArgs?.('writeContext__', path); - logger.time?.(`writeContext__time(${path})`); - await writeJson(resolve(this.config__.rootPath, path), context); - logger.timeEnd?.(`writeContext__time(${path})`); + return writeJson(resolve(this.config__.rootPath, path), context); } /**