client: fix FindProof()

This commit is contained in:
Michael Muré
2024-12-12 16:58:02 +01:00
committed by Michael Muré
parent b0783bf4a4
commit 11b4352063

View File

@@ -44,7 +44,7 @@ func FindProof(dlgs func() iter.Seq[*delegation.Bundle], issuer did.DID, cmd com
var candidateLeaf []*delegation.Bundle
for bundle := range dlgs() {
if dlgMatch(bundle.Decoded, issuer, cmd, subject) {
if !dlgMatch(bundle.Decoded, issuer, cmd, subject) {
continue
}
candidateLeaf = append(candidateLeaf, bundle)