mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
style: use simplest function available
This commit is contained in:
parent
87e962b52b
commit
0e285a5645
@ -241,7 +241,7 @@ public V this[K i]
|
|||||||
get => objects[i];
|
get => objects[i];
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (TryGetValue(i, out V val))
|
if (ContainsKey(i))
|
||||||
{
|
{
|
||||||
AddOperation(Operation.OP_SET, i, value);
|
AddOperation(Operation.OP_SET, i, value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user