Skip to content

Commit 287a0a0

Browse files
committed
sendtables: Property.firePropertyUpdate() - remove unnecessary if nil check
1 parent b126f0b commit 287a0a0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sendtables/entity.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,7 @@ func (pe *Property) OnUpdate(handler PropertyUpdateHandler) {
321321
// Trigger all the registered PropertyUpdateHandlers on this entry.
322322
func (pe *Property) firePropertyUpdate() {
323323
for _, h := range pe.updateHandlers {
324-
if h != nil {
325-
h(pe.value)
326-
}
324+
h(pe.value)
327325
}
328326
}
329327

0 commit comments

Comments
 (0)