fix typecheck
This commit is contained in:
parent
361cabd43b
commit
2df3f1307f
1 changed files with 5 additions and 3 deletions
|
|
@ -159,9 +159,11 @@ export class CodebaseIndexer {
|
|||
const indexes: CodebaseIndex[] = [];
|
||||
// not parallelizing to avoid race conditions in sqlite
|
||||
for (const indexType of indexTypesToBuild) {
|
||||
const index = await indexTypeToIndexerMapping[indexType]();
|
||||
if (index) {
|
||||
indexes.push(index);
|
||||
if (indexType && indexType in indexTypeToIndexerMapping) {
|
||||
const index = await indexTypeToIndexerMapping[indexType]();
|
||||
if (index) {
|
||||
indexes.push(index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue