This follows up CL95235
Change-Id: I62652654e5bb46d2f8f37af468e1fbcc1835bb8a
Reviewed-on: https://go-review.googlesource.com/95295
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
nt = t.New(name)
}
// Even if nt == t, we need to install it in the common.tmpl map.
- replace := t.associate(nt, tree)
- if replace || nt.Tree == nil {
+ if t.associate(nt, tree) || nt.Tree == nil {
nt.Tree = tree
}
return nt, nil