Merge pull request #117 from colincross/variant

Elide empty variations
This commit is contained in:
colincross 2016-08-15 12:22:37 -07:00 committed by GitHub
commit e412f09f7e

View file

@ -1010,10 +1010,12 @@ func (c *Context) createVariations(origModule *moduleInfo, mutatorName string,
newModule.dependencyVariant = origModule.dependencyVariant.clone()
newModule.moduleProperties = newProperties
if newModule.variantName == "" {
newModule.variantName = variationName
} else {
newModule.variantName += "_" + variationName
if variationName != "" {
if newModule.variantName == "" {
newModule.variantName = variationName
} else {
newModule.variantName += "_" + variationName
}
}
newModules = append(newModules, newModule)