Null-conditional

This commit is contained in:
Paul Pacheco 2019-01-30 18:40:21 -06:00
parent 07e3d48dde
commit b816045c06

View File

@ -332,14 +332,10 @@ public void OnDeserializeDelta(NetworkReader reader)
if (apply) if (apply)
{ {
SyncListChanged listChanged = Callback; Callback?.Invoke(operation, index, item);
if (listChanged != null)
{
listChanged(operation, index, item);
}
} }
// we just skipped this change // we just skipped this change
if (!apply) else
{ {
changesAhead--; changesAhead--;
} }