mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
[INJIMOB-3647] fix error condition in ios revocation (#2157)
Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
This commit is contained in:
@@ -55,10 +55,14 @@ final class LdpStatusChecker {
|
||||
}
|
||||
|
||||
let statusField = vc["credentialStatus"]
|
||||
guard let statusEntries = normalizeStatusField(statusField) else { throw StatusCheckException(
|
||||
message: "No valid credentialStatus entries found",
|
||||
errorCode: .invalidCredentialStatus
|
||||
) }
|
||||
if statusField == nil {
|
||||
return [:]
|
||||
}
|
||||
|
||||
guard let statusEntries = normalizeStatusField(statusField) else {
|
||||
throw StatusCheckException(message: "Malformed credentialStatus structure", errorCode: .invalidCredentialStatus)
|
||||
}
|
||||
|
||||
|
||||
let filteredEntries = filterEntries(statusEntries, statusPurposes)
|
||||
guard !filteredEntries.isEmpty else {
|
||||
|
||||
Reference in New Issue
Block a user