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:
commit
31b232ba4b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue