diff --git a/src/build/overrides.ts b/src/build/overrides.ts index 6470efb..6081967 100644 --- a/src/build/overrides.ts +++ b/src/build/overrides.ts @@ -22,12 +22,7 @@ export function parseOverrides(list: string) { export function findOverrideModules(overridePaths: Iterable, modulesMap: SoongModuleInfo) { // Build installed path->module index let pathMap = new Map() - for (let moduleName in modulesMap) { - if (!modulesMap.hasOwnProperty(moduleName)) { - continue - } - - let module = modulesMap[moduleName] + for (let module of Object.values(modulesMap)) { for (let path of module.installed) { pathMap.set(path, module) }