redundant check
This commit is contained in:
parent
39ad2e9f8d
commit
5650efb17b
1 changed files with 1 additions and 3 deletions
|
@ -325,9 +325,7 @@ func (g *Game) registerOne(component, parent interface{}) error {
|
|||
}
|
||||
|
||||
// register in g.par
|
||||
if parent != nil {
|
||||
g.par[component] = parent
|
||||
}
|
||||
|
||||
// register in g.byAB
|
||||
ct := reflect.TypeOf(component)
|
||||
|
|
Loading…
Reference in a new issue