Minor refactoring to remove a couple of warnings am: 5ff5fe3e66 am: 31b232ba4b am: a526ba483f

Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/1909474

Change-Id: Ifed24dc86ab6342a13d62dfa3a0f8eadcea9ef70
This commit is contained in:
Usta 2021-12-02 22:22:55 +00:00 committed by Automerger Merge Worker
commit f5693736a2

View file

@ -847,7 +847,7 @@ type EarlyMutatorContext interface {
// automatically be updated to point to the first variant.
CreateVariations(...string) []Module
// CreateLocationVariations splits a module into mulitple variants, one for each name in the variantNames
// CreateLocalVariations splits a module into multiple variants, one for each name in the variantNames
// parameter. It returns a list of new modules in the same order as the variantNames
// list.
//
@ -1330,7 +1330,7 @@ func (l *loadHookContext) RegisterScopedModuleType(name string, factory ModuleFa
}
if *l.scopedModuleFactories == nil {
(*l.scopedModuleFactories) = make(map[string]ModuleFactory)
*l.scopedModuleFactories = make(map[string]ModuleFactory)
}
(*l.scopedModuleFactories)[name] = factory