Revert "when there are fewer indexes return true"

This reverts commit d7066bed4b.
This commit is contained in:
uinstinct 2025-09-09 01:42:30 +05:30
parent d7066bed4b
commit 361a627a24
2 changed files with 1 additions and 4 deletions

View file

@ -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);
});
});
});

View file

@ -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,