Skip to content

Commit ccfeab1

Browse files
Update src/Microsoft.OpenApi/Models/OpenApiPathItem.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent 5686de4 commit ccfeab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/OpenApiPathItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class OpenApiPathItem : IOpenApiExtensible, IOpenApiPathItem
4141
/// <param name="operation">The operation item.</param>
4242
public void AddOperation(HttpMethod operationType, OpenApiOperation operation)
4343
{
44-
Operations ??= new Dictionary<HttpMethod, OpenApiOperation>();
44+
Operations ??= [];
4545
Operations[operationType] = operation;
4646
}
4747

0 commit comments

Comments
 (0)