Browse Source

Cosmetics

Piotr Czajkowski 2 years ago
parent
commit
d5eaf4a9f4
1 changed files with 1 additions and 4 deletions
  1. 1 4
      analyzeJSON/AnalyzeJSON.cs

+ 1 - 4
analyzeJSON/AnalyzeJSON.cs

@@ -24,10 +24,7 @@ namespace analyzeJSON
 
         public AnalyzeJSON(JObject jObject)
         {
-            if (jObject == null)
-                throw new ArgumentNullException("jObject");
-
-            json = jObject;
+            json = jObject ?? throw new ArgumentNullException("jObject");
         }
 
         public static string GetNameFromPath(string tokenPath)