go.exp/locale: change based on comment in CL 7628047 that I forgot
to do before submitting. Was a bit too trigger happy.
R=r
CC=golang-dev
https://golang.org/cl/8016045
diff --git a/locale/maketables.go b/locale/maketables.go
index b0ab9b4..c2695e7 100644
--- a/locale/maketables.go
+++ b/locale/maketables.go
@@ -122,10 +122,8 @@
}
func (ss *stringSet) setType(t setType) {
- if ss.typ != t {
- if ss.typ != 0 {
- log.Panicf("type %d cannot be assigned as it was already %d", t, ss.typ)
- }
+ if ss.typ != t && ss.typ != 0 {
+ log.Panicf("type %d cannot be assigned as it was already %d", t, ss.typ)
}
}