Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be7021c

Browse filesBrowse files
Use collection initializers
1 parent 7aad49f commit be7021c
Copy full SHA for be7021c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-6
lines changed

‎src/AspNetCore/OData/src/Asp.Versioning.OData.ApiExplorer/ApiExplorer/PartialODataDescriptionProvider.cs

Copy file name to clipboardExpand all lines: src/AspNetCore/OData/src/Asp.Versioning.OData.ApiExplorer/ApiExplorer/PartialODataDescriptionProvider.cs
+2-6Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,10 @@ private static int ODataOrder() =>
145145
new ODataApiDescriptionProvider(
146146
new StubModelMetadataProvider(),
147147
new StubModelTypeBuilder(),
148-
new OptionsFactory<ODataOptions>(
149-
Enumerable.Empty<IConfigureOptions<ODataOptions>>(),
150-
Enumerable.Empty<IPostConfigureOptions<ODataOptions>>() ),
148+
new OptionsFactory<ODataOptions>( [], [] ),
151149
Opts.Create(
152150
new ODataApiExplorerOptions(
153-
new(
154-
new StubODataApiVersionCollectionProvider(),
155-
Enumerable.Empty<IModelConfiguration>() ) ) ) ).Order;
151+
new( new StubODataApiVersionCollectionProvider(), [] ) ) ) ).Order;
156152

157153
[MethodImpl( MethodImplOptions.AggressiveInlining )]
158154
private static void MarkAsAdHoc( ODataModelBuilder builder, IEdmModel model ) =>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.