Minor refactoring to remove a couple of warnings

Test: m nothing
Bug: n/a

Change-Id: I3d5cf50974e84725d1d49113dfb9b74d4f426fb8
This commit is contained in:
Usta 2021-11-30 13:00:38 -05:00
parent 3a988df18a
commit 5ff5fe3e66

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