We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a4c03 commit 3d8c66fCopy full SHA for 3d8c66f
src/Microsoft.OpenApi/Services/OpenApiUrlTreeNode.cs
@@ -59,17 +59,7 @@ public bool HasOperations(string label)
59
{
60
Utils.CheckArgumentNullOrEmpty(label, nameof(label));
61
62
- if (PathItems == null)
63
- {
64
- return false;
65
- }
66
-
67
- if (PathItems.TryGetValue(label, out var item))
68
69
- return item.Operations?.Any() ?? false;
70
71
72
+ return PathItems is not null && PathItems.TryGetValue(label, out var item) && item.Operations is not null && item.Operations.Any();
73
}
74
75
/// <summary>
0 commit comments