code review

This commit is contained in:
Suresh, Kamlesh 2021-04-08 15:34:21 -04:00
parent 08c83872d5
commit a50e3346e7
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ public class RuleAnyRequiredModel: RulesProtocol {
guard let formField = fieldMolecules[formKey] else { continue }
var fieldValidity = isValid(formField)
// If past rule is invalid forr a field, the current rule should not flip the validity of a field
// If past rule is invalid for a field, the current rule should not flip the validity of a field
if let validity = previousFieldValidity[formKey], !validity, fieldValidity {
fieldValidity = false
}

View File

@ -45,7 +45,7 @@ public class RuleEqualsIgnoreCaseModel: RulesProtocol {
valid = true
var fieldValidity = valid
// If past rule is invalid forr a field, the current rule should not flip the validity of a field
// If past rule is invalid for a field, the current rule should not flip the validity of a field
if let validity = previousFieldValidity[formKey], !validity, fieldValidity {
fieldValidity = false
}

View File

@ -47,7 +47,7 @@ public class RuleEqualsModel: RulesProtocol {
break
} else {
var fieldValidity = valid
// If past rule is invalid forr a field, the current rule should not flip the validity of a field
// If past rule is invalid for a field, the current rule should not flip the validity of a field
if let validity = previousFieldValidity[formKey], !validity, fieldValidity {
fieldValidity = false
}