Skip to content

Commit

Permalink
Use super
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Mar 7, 2017
1 parent c63b218 commit 3a157de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Basic-Swift/FORMBrandedValidator.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
@implementation FORMBrandedValidator

- (FORMValidationResultType)validateFieldValue:(id)fieldValue {
FORMValidationResultType superValidation = [super validateFieldValue:fieldValue];
if (superValidation != FORMValidationResultTypeValid) return superValidation;

return FORMValidationResultTypeInvalid;
}

Expand Down

0 comments on commit 3a157de

Please sign in to comment.