Panic if soongConfig and productConfig values do not match

Merging is not supported yet, but we do not need to panic if both of
them have the same value.

Test: m nothing
Change-Id: Ie292173d549347164f0d8ad2c04963b97eefe4df
This commit is contained in:
Spandan Das
2023-07-28 01:31:15 +00:00
parent 474d43bda6
commit 7b26e0f04e

View File

@@ -734,7 +734,9 @@ func (p *ProductConfigProperties) AddEitherProperty(
dst = append(dst, src...)
(*p)[propertyName][key] = dst
default:
panic(fmt.Errorf("TODO: handle merging value %#v", existing))
if existing != propertyValue {
panic(fmt.Errorf("TODO: handle merging value %#v", existing))
}
}
} else {
(*p)[propertyName][key] = propertyValue