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

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

Change-Id: I1982017e263f44844514b8e5d00af28f47d3ff51
This commit is contained in:
Usta 2021-12-02 21:54:52 +00:00 committed by Automerger Merge Worker
commit 31b232ba4b

View file

@ -847,7 +847,7 @@ type EarlyMutatorContext interface {
// automatically be updated to point to the first variant. // automatically be updated to point to the first variant.
CreateVariations(...string) []Module 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 // parameter. It returns a list of new modules in the same order as the variantNames
// list. // list.
// //
@ -1330,7 +1330,7 @@ func (l *loadHookContext) RegisterScopedModuleType(name string, factory ModuleFa
} }
if *l.scopedModuleFactories == nil { if *l.scopedModuleFactories == nil {
(*l.scopedModuleFactories) = make(map[string]ModuleFactory) *l.scopedModuleFactories = make(map[string]ModuleFactory)
} }
(*l.scopedModuleFactories)[name] = factory (*l.scopedModuleFactories)[name] = factory