Skip to content

Commit 2292fbe

Browse files
Fix CodeQL violation
1 parent 334b2aa commit 2292fbe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/AspNetCore/WebApi/src/Asp.Versioning.Http/Builder/EndpointBuilderFinalizer.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ private record struct ApiVersionBuckets(
278278
IReadOnlyList<ApiVersion> Advertised,
279279
IReadOnlyList<ApiVersion> AdvertisedDeprecated )
280280
{
281-
internal bool AreEmpty = Mapped.Count == 0
282-
&& Supported.Count == 0
283-
&& Deprecated.Count == 0
284-
&& Advertised.Count == 0
285-
&& AdvertisedDeprecated.Count == 0;
281+
internal readonly bool AreEmpty = Mapped.Count == 0
282+
&& Supported.Count == 0
283+
&& Deprecated.Count == 0
284+
&& Advertised.Count == 0
285+
&& AdvertisedDeprecated.Count == 0;
286286
}
287287
}

0 commit comments

Comments
 (0)