Skip to content

Commit

Permalink
add a break after finding the sig is valid for one db
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <[email protected]>
  • Loading branch information
asraa committed Oct 28, 2022
1 parent 07887ed commit 3d904da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ func (r *Repo) AddOrUpdateSignature(roleFilename string, signature data.Signatur
if err := verify.VerifySignature(s.Signed, signature.Signature,
verifier); err == nil {
validSig = true
break
}
}
}
Expand Down

0 comments on commit 3d904da

Please sign in to comment.