Skip to content

Commit f72d77c

Browse files
desjoerdbaywet
andauthored
Apply suggestions from code review
Co-authored-by: Vincent Biret <vincentbiret@hotmail.com>
1 parent c532c4e commit f72d77c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.OpenApi/Models/OpenApiSchema.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,14 +865,14 @@ private void SerializeNullable(IOpenApiWriter writer, OpenApiSpecVersion version
865865
private static (IList<IOpenApiSchema>? effective, JsonSchemaType? inferredType, bool hasNullInComposition)
866866
ProcessCompositionForNull(IList<IOpenApiSchema>? composition)
867867
{
868-
if (composition is null || !composition.Any(s => s.Type is JsonSchemaType.Null))
868+
if (composition is null || !composition.Any(static s => s.Type is JsonSchemaType.Null))
869869
{
870870
// Nothing to patch
871871
return (composition, null, false);
872872
}
873873

874874
var nonNullSchemas = composition
875-
.Where(s => s.Type is null or not JsonSchemaType.Null)
875+
.Where(static s => s.Type is null or not JsonSchemaType.Null)
876876
.ToList();
877877

878878
if (nonNullSchemas.Count > 0)

0 commit comments

Comments
 (0)