Minor refactoring to remove a couple of warnings
Test: m nothing Bug: n/a Change-Id: I3d5cf50974e84725d1d49113dfb9b74d4f426fb8
This commit is contained in:
parent
3a988df18a
commit
5ff5fe3e66
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.
|
// 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
|
||||||
|
|
Loading…
Reference in a new issue