Skip to content

Commit 6becd0d

Browse files
irvinesundaybaywet
andauthored
Update src/Microsoft.OpenApi/Services/OpenApiUrlTreeNode.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent 95f71f6 commit 6becd0d

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
@@ -49,7 +49,7 @@ public class OpenApiUrlTreeNode
4949
/// <returns>true or false.</returns>
5050
public bool HasOperations(string label)
5151
{
52-
if ((bool)!PathItems?.ContainsKey(label))
52+
if (!(PathItems?.ContainsKey(label) ?? false))
5353
{
5454
return false;
5555
}

0 commit comments

Comments
 (0)