Skip to content

Commit

Permalink
fix: it was returning nil when the case was valid
Browse files Browse the repository at this point in the history
  • Loading branch information
beatt83 committed Oct 12, 2023
1 parent b58b8d7 commit 5dea694
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/DIDCore/DIDDocument/VerificationMaterial.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ public enum KnownVerificationMaterialType: RawRepresentable, Codable {
self = .agreement(agreementType)
} else if let autheticationType = AuthenticationType(rawValue: rawValue) {
self = .authentication(autheticationType)
} else {
return nil
}
return nil
}

public var rawValue: String {
Expand Down

0 comments on commit 5dea694

Please sign in to comment.