Fixed some code issues

This commit is contained in:
DarthAffe committed 2023-04-11 00:26:46 +02:00
1 parent 02235a3f7f
commit 82050b8d5a
1 file changed
+1 -2
+1 -2
View File
@@ -50,8 +50,7 @@ public static class IdGenerator
idMapping.Add(id, mappedId);
}
if (!counterMapping.ContainsKey(mappedId))
counterMapping.Add(mappedId, 0);
counterMapping.TryAdd(mappedId, 0);
int counter = ++counterMapping[mappedId];
return counter <= 1 ? mappedId : $"{mappedId} ({counter})";