Skip to content

Commit 618e727

Browse files
committed
chore: changes extensions to return null value when assembly info is disabled
Signed-off-by: Vincent Biret <[email protected]>
1 parent 769bdd0 commit 618e727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiInfoGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private static string GetDescription(this ODataContext context)
100100
return "This OData service is located at " + context.Settings.ServiceRoot.OriginalString;
101101
}
102102

103-
private static Dictionary<string, IOpenApiExtension> GetExtensions(this ODataContext context)
103+
private static Dictionary<string, IOpenApiExtension>? GetExtensions(this ODataContext context)
104104
{
105105
Debug.Assert(context != null);
106106

@@ -118,7 +118,7 @@ private static Dictionary<string, IOpenApiExtension> GetExtensions(this ODataCon
118118
}
119119
};
120120
}
121-
return [];
121+
return null;
122122
}
123123
}
124124
}

0 commit comments

Comments
 (0)