overrides: Simplify index creation
This commit is contained in:
parent
cee15e1fcd
commit
ad625abac3
1 changed files with 1 additions and 6 deletions
|
@ -22,12 +22,7 @@ export function parseOverrides(list: string) {
|
|||
export function findOverrideModules(overridePaths: Iterable<string>, modulesMap: SoongModuleInfo) {
|
||||
// Build installed path->module index
|
||||
let pathMap = new Map<string, TargetModuleInfo>()
|
||||
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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue