Panic through internalError on a disagreement key mapped to nil too

This commit is contained in:
2026-09-29 03:54:31 +02:00
committed by Lillem4n
parent e74457a470
commit be9ab3efcf
+2 -2
View File
@@ -202,8 +202,8 @@ func disagreement(a *template, da DataType, b *template, db DataType) error {
}
func disagreementFix(k disagreementKey) func(d itemPair) error {
fix, ok := disagreements[k]
if !ok {
fix := disagreements[k]
if fix == nil {
panic(internalError("no disagreement names the fix for %+v", k))
}
return fix