style: use simplest function available

This commit is contained in:
Paul Pacheco 2019-04-06 07:05:31 -05:00
parent 87e962b52b
commit 0e285a5645

View File

@ -241,7 +241,7 @@ public V this[K i]
get => objects[i];
set
{
if (TryGetValue(i, out V val))
if (ContainsKey(i))
{
AddOperation(Operation.OP_SET, i, value);
}