Skip to content

Commit 74c2f45

Browse files
slight simplification
1 parent d835df9 commit 74c2f45

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ProtectionScan/Features/MainFeature.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,10 @@ private static void InsertNode(Dictionary<string, object> nestedDictionary,
345345
return;
346346
}
347347

348-
var current = nestedDictionary;
349-
if (!current.ContainsKey(fullPath))
350-
current[fullPath] = new Dictionary<string, object>();
348+
if (!nestedDictionary.ContainsKey(fullPath))
349+
nestedDictionary[fullPath] = new Dictionary<string, object>();
351350

352-
current = (Dictionary<string, object>)current[fullPath];
351+
var current = (Dictionary<string, object>)nestedDictionary[fullPath];
353352

354353

355354
// Traverses the nested dictionary until the "leaf" dictionary is reached.

0 commit comments

Comments
 (0)