Skip to content

Commit 5dea694

Browse files
committed
fix: it was returning nil when the case was valid
1 parent b58b8d7 commit 5dea694

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/DIDCore/DIDDocument/VerificationMaterial.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public enum KnownVerificationMaterialType: RawRepresentable, Codable {
4343
self = .agreement(agreementType)
4444
} else if let autheticationType = AuthenticationType(rawValue: rawValue) {
4545
self = .authentication(autheticationType)
46+
} else {
47+
return nil
4648
}
47-
return nil
4849
}
4950

5051
public var rawValue: String {

0 commit comments

Comments
 (0)