Rename jsonVariationMap to jsonVariations.

Test: m json-module-graph
Change-Id: I99663586ded4c5d7c0f61859292afbcf80a1e526
This commit is contained in:
Liz Kammer 2022-04-26 09:50:42 -04:00
parent 5208ee885c
commit c6d80893cb

View file

@ -2235,12 +2235,12 @@ func (c *Context) updateDependencies() (errs []error) {
return return
} }
type jsonVariationMap []Variation type jsonVariations []Variation
type jsonModuleName struct { type jsonModuleName struct {
Name string Name string
Variations jsonVariationMap Variations jsonVariations
DependencyVariations jsonVariationMap DependencyVariations jsonVariations
} }
type jsonDep struct { type jsonDep struct {
@ -2256,8 +2256,8 @@ type JsonModule struct {
Module map[string]interface{} Module map[string]interface{}
} }
func toJsonVariationMap(vm variationMap) jsonVariationMap { func toJsonVariationMap(vm variationMap) jsonVariations {
m := make(jsonVariationMap, 0, len(vm)) m := make(jsonVariations, 0, len(vm))
for k, v := range vm { for k, v := range vm {
m = append(m, Variation{k, v}) m = append(m, Variation{k, v})
} }