Skip to content

Commit d73dfd3

Browse files
pavinanmkArtakMSFT
authored andcommitted
Replaced >= with > in condition. (#14825)
1 parent 8f9073e commit d73dfd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mvc/Mvc.DataAnnotations/src/DataAnnotationsMetadataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ internal static bool HasNullableAttribute(IEnumerable<object> attributes, out bo
481481
// See: https://github.com/dotnet/roslyn/blob/master/docs/features/nullable-reference-types.md#annotations
482482
if (nullableAttribute.GetType().GetField(NullableFlagsFieldName) is FieldInfo field &&
483483
field.GetValue(nullableAttribute) is byte[] flags &&
484-
flags.Length >= 0 &&
484+
flags.Length > 0 &&
485485
flags[0] == 1) // First element is the property/parameter type.
486486
{
487487
isNullable = true;

0 commit comments

Comments
 (0)