Skip to content

Commit f2316cc

Browse files
committed
fix: Clarify conditional by adding parens.
1 parent 3c5fc64 commit f2316cc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

com.playeveryware.eos/Runtime/Core/Config/Attributes/Validators/LengthValidationAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public override bool ValidateStringField(string value, out string errorMessage)
6262
{
6363
// If the minimum length is set and greater than 0, then fail if
6464
// string is either null or is too short.
65-
if (_minLength is > 0 && value == null || value.Length < _minLength)
65+
if ((_minLength is > 0 && value == null) || value.Length < _minLength)
6666
{
6767
errorMessage = $"String must be at least {_minLength.Value} characters long.";
6868
return false;

com.playeveryware.eos/Runtime/Core/Config/Attributes/Validators/README.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)