Skip to content

Commit

Permalink
fix(world): added a ! to a boolean expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Brower authored and Noofbiz committed May 5, 2020
1 parent c391582 commit 8f4c6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion world.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (w *World) AddSystemInterface(sys SystemAddByInterfacer, in interface{}, ex
w.sysIn = make(map[reflect.Type][]reflect.Type)
}

if reflect.TypeOf(in).AssignableTo(reflect.TypeOf([]interface{}{})) {
if !reflect.TypeOf(in).AssignableTo(reflect.TypeOf([]interface{}{})) {
in = []interface{}{in}
}
for _, v := range in.([]interface{}) {
Expand Down

0 comments on commit 8f4c6ac

Please sign in to comment.