Code review notes

This commit is contained in:
Igor Kislyuk 2018-03-26 13:33:04 +03:00
parent 9baa92a303
commit 5d9a456d1d
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ public extension PassCodeValidationResult {
switch self { switch self {
case .valid: case .valid:
return true return true
case .invalid(_): case .invalid:
return false return false
} }
} }
@ -42,7 +42,7 @@ public extension PassCodeValidationResult {
switch self { switch self {
case let .valid(passCode): case let .valid(passCode):
return passCode return passCode
case .invalid(_): case .invalid:
return nil return nil
} }
} }
@ -51,7 +51,7 @@ public extension PassCodeValidationResult {
switch self { switch self {
case let .invalid(error): case let .invalid(error):
return error return error
case .valid(_): case .valid:
return nil return nil
} }
} }