Panic through internalError on a disagreement key mapped to nil too
This commit is contained in:
+2
-2
@@ -202,8 +202,8 @@ func disagreement(a *template, da DataType, b *template, db DataType) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func disagreementFix(k disagreementKey) func(d itemPair) error {
|
func disagreementFix(k disagreementKey) func(d itemPair) error {
|
||||||
fix, ok := disagreements[k]
|
fix := disagreements[k]
|
||||||
if !ok {
|
if fix == nil {
|
||||||
panic(internalError("no disagreement names the fix for %+v", k))
|
panic(internalError("no disagreement names the fix for %+v", k))
|
||||||
}
|
}
|
||||||
return fix
|
return fix
|
||||||
|
|||||||
Reference in New Issue
Block a user