mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Remove redundant if
This commit is contained in:
parent
62525a9b4b
commit
de768d142f
@ -268,8 +268,6 @@ IEnumerable<NetworkBehaviourInfo> GetNetworkBehaviorInfo(NetworkIdentity identit
|
||||
List<NetworkBehaviourInfo> behaviourInfos = new List<NetworkBehaviourInfo>();
|
||||
|
||||
NetworkBehaviour[] behaviours = identity.GetComponents<NetworkBehaviour>();
|
||||
if (behaviours.Length > 0)
|
||||
{
|
||||
foreach (NetworkBehaviour behaviour in behaviours)
|
||||
{
|
||||
behaviourInfos.Add(new NetworkBehaviourInfo
|
||||
@ -278,7 +276,6 @@ IEnumerable<NetworkBehaviourInfo> GetNetworkBehaviorInfo(NetworkIdentity identit
|
||||
behaviour = behaviour
|
||||
});
|
||||
}
|
||||
}
|
||||
return behaviourInfos;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user