Skip to content

Commit

Permalink
fix: vc parse
Browse files Browse the repository at this point in the history
  • Loading branch information
skynet2 committed Jun 18, 2024
1 parent f7bde03 commit 9b23b52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions verifiable/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,10 @@ func ParseCredential(vcData []byte, opts ...CredentialOpt) (*Credential, error)
if err != nil {
finalErr = errors.Join(finalErr, err)
}

if vc != nil {
break
}
}

if vc == nil {
Expand Down

0 comments on commit 9b23b52

Please sign in to comment.