Skip to content

Commit 7d36d69

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

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
@@ -54,7 +54,7 @@ public bool HasOperations(string label)
5454
return false;
5555
}
5656

57-
return PathItems[label].Operations != null && PathItems[label].Operations.Count > 0;
57+
return PathItems[label].Operations?.Any() ?? false;
5858
}
5959

6060
/// <summary>

0 commit comments

Comments
 (0)