Skip to content

Commit b126f0b

Browse files
committed
sendtables: remove unnecessary if nil check
1 parent cef132c commit b126f0b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sendtables/sendtables.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ func (sc *ServerClass) newEntity(entityDataReader *bit.BitReader, entityID int)
117117

118118
// Fire created-handlers so update-handlers can be registered
119119
for _, h := range sc.createdHandlers {
120-
if h != nil {
121-
h(entity)
122-
}
120+
h(entity)
123121
}
124122

125123
// Fire update-handlers

0 commit comments

Comments
 (0)