Skip to content

Commit

Permalink
refactor: Remove unnecessary debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Aug 31, 2024
1 parent 322b76d commit bdebb58
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/engine/src/alwatr-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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__<T extends StoreFileContext>(path: string | StoreFileStat, context: T): Promise<void> {
private writeContext__<T extends StoreFileContext>(path: string | StoreFileStat, context: T): Promise<void> {
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);
}

/**
Expand Down

0 comments on commit bdebb58

Please sign in to comment.