x/model: make Name.String() less annoying when kind is Unknown
This commit is contained in:
parent
7c7f56a7fb
commit
3cf109ec59
@ -33,7 +33,7 @@ var kindNames = map[NamePartKind]string{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (k NamePartKind) String() string {
|
func (k NamePartKind) String() string {
|
||||||
return cmp.Or(kindNames[k], "!(UNKNOWN PART KIND)")
|
return cmp.Or(kindNames[k], "Unknown")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Levels of concreteness
|
// Levels of concreteness
|
||||||
|
Loading…
x
Reference in New Issue
Block a user