Skip to content

Commit 9e2ff51

Browse files
darrelmillerbaywet
andcommitted
Update src/Microsoft.OpenApi/Services/OpenApiUrlTreeNode.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent 6c57e8d commit 9e2ff51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Services/OpenApiUrlTreeNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ private static string GetMethods(OpenApiUrlTreeNode node)
296296
private static (string, string) GetShapeDelimiters(string methods)
297297
{
298298

299-
if (MermaidNodeStyles.ContainsKey(methods))
299+
if (MermaidNodeStyles.TryGetValue(methods, out var style))
300300
{
301301
//switch on shape
302302
switch (MermaidNodeStyles[methods].Shape)

0 commit comments

Comments
 (0)