From 5ff5fe3e66cb0f030d736d7139dac0bcbfaa1781 Mon Sep 17 00:00:00 2001 From: Usta Date: Tue, 30 Nov 2021 13:00:38 -0500 Subject: [PATCH] Minor refactoring to remove a couple of warnings Test: m nothing Bug: n/a Change-Id: I3d5cf50974e84725d1d49113dfb9b74d4f426fb8 --- module_ctx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module_ctx.go b/module_ctx.go index 0235beb..02ef9c4 100644 --- a/module_ctx.go +++ b/module_ctx.go @@ -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