Replaced >= with > in condition. (#14825)

This commit is contained in:
Bharat Kumar Bellamkonda 2019-10-16 22:06:16 +05:30 committed by Artak
parent 8f9073e8ea
commit d73dfd3a1d
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations
// See: https://github.com/dotnet/roslyn/blob/master/docs/features/nullable-reference-types.md#annotations
if (nullableAttribute.GetType().GetField(NullableFlagsFieldName) is FieldInfo field &&
field.GetValue(nullableAttribute) is byte[] flags &&
flags.Length >= 0 &&
flags.Length > 0 &&
flags[0] == 1) // First element is the property/parameter type.
{
isNullable = true;