redundant check

This commit is contained in:
Josh Deprez 2021-09-22 17:05:50 +10:00
parent 39ad2e9f8d
commit 5650efb17b

View file

@ -325,9 +325,7 @@ func (g *Game) registerOne(component, parent interface{}) error {
} }
// register in g.par // register in g.par
if parent != nil { g.par[component] = parent
g.par[component] = parent
}
// register in g.byAB // register in g.byAB
ct := reflect.TypeOf(component) ct := reflect.TypeOf(component)