diff --git a/core/indexing/CodebaseIndexer.test.ts b/core/indexing/CodebaseIndexer.test.ts index 169aa4eb5..2d7ac48af 100644 --- a/core/indexing/CodebaseIndexer.test.ts +++ b/core/indexing/CodebaseIndexer.test.ts @@ -819,7 +819,7 @@ describe("CodebaseIndexer", () => { (testIndexer as any).builtIndexes = [mockIndex1, mockIndex2]; const result = await testIndexer.wasIndexesChanged(); - expect(result).toBe(true); + expect(result).toBe(false); }); }); }); diff --git a/core/indexing/CodebaseIndexer.ts b/core/indexing/CodebaseIndexer.ts index 057979fa8..d67db7d9b 100644 --- a/core/indexing/CodebaseIndexer.ts +++ b/core/indexing/CodebaseIndexer.ts @@ -716,9 +716,6 @@ export class CodebaseIndexer { public async wasIndexesChanged() { const indexes = await this.getIndexesToBuild(); - if (indexes.length < this.builtIndexes.length) { - return true; - } return !indexes.every((index) => this.builtIndexes.some( (builtIndex) => builtIndex.artifactId === index.artifactId,