Skip to content

Commit b514778

Browse files
committed
style(memory): remove redundant reindex boolean conversion
1 parent b576efc commit b514778

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎extensions/memory-core/src/memory/manager-sync-ops.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,14 @@ export abstract class MemoryManagerSyncOps extends MemoryManagerSourceSyncOps {
252252
meta !== null && meta.chunkingVersion !== MEMORY_CHUNKING_VERSION && !hasTargetArchiveFiles;
253253
const canRunRetryFullReindex =
254254
indexIdentity.status !== "missing" || needsInitialIndex || canRebuildMissingIdentity;
255-
needsFullReindex = Boolean(
255+
needsFullReindex =
256256
(params?.force && !hasTargetArchiveFiles) ||
257257
needsInitialIndex ||
258258
needsMissingIdentityReindex ||
259259
needsExplicitIdentityReindex ||
260260
needsChunkingVersionReindex ||
261261
(this.memoryFullRetryDirty && canRunRetryFullReindex) ||
262-
(this.sessionsFullRetryDirty && indexIdentity.status !== "valid" && canRunRetryFullReindex),
263-
);
262+
(this.sessionsFullRetryDirty && indexIdentity.status !== "valid" && canRunRetryFullReindex);
264263
const needsFullSessionReindex = needsFullReindex || this.sessionsFullRetryDirty;
265264
if (indexIdentity.status !== "valid" && !needsFullReindex) {
266265
this.dirty = true;

0 commit comments

Comments
 (0)