Replaced ContainsKey and getting by value with TryGetValue method (#2013)

This commit is contained in:
Damir Ainullin
2019-03-30 14:35:58 +13:00
committed by James Newton-King
parent 279a041eeb
commit eb372aaf56
@@ -129,7 +129,7 @@ namespace Newtonsoft.Json.Linq
if (_dictionary != null) if (_dictionary != null)
{ {
return _dictionary.ContainsKey(key) && Remove(_dictionary[key]); return _dictionary.TryGetValue(key, out JToken value) && Remove(value);
} }
return false; return false;