From 9495a9ffce88e86464fae89e0339b5f4fd871a76 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sun, 11 Feb 2018 12:17:14 +1300 Subject: [PATCH] -Derp --- Src/Newtonsoft.Json/Serialization/DefaultContractResolver.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Src/Newtonsoft.Json/Serialization/DefaultContractResolver.cs b/Src/Newtonsoft.Json/Serialization/DefaultContractResolver.cs index 772eb5c0..05e2bac8 100644 --- a/Src/Newtonsoft.Json/Serialization/DefaultContractResolver.cs +++ b/Src/Newtonsoft.Json/Serialization/DefaultContractResolver.cs @@ -193,10 +193,7 @@ namespace Newtonsoft.Json.Serialization /// The contract for a given type. public virtual JsonContract ResolveContract(Type type) { - if (type == null) - { - throw new ArgumentNullException(nameof(type)); - } + ValidationUtils.ArgumentNotNull(type, nameof(type)); return _contractCache.Get(type); }