Skip to content

Commit

Permalink
Change signature of PublicKeySlice.ContainsAny
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Apr 27, 2024
1 parent f20f980 commit 5ae2954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keys.go
Expand Up @@ -363,7 +363,7 @@ func (slice PublicKeySlice) ContainsAll(pubkeys PublicKeySlice) bool {
}

// ContainsAny returns true if any of the provided pubkeys are present in the slice.
func (slice PublicKeySlice) ContainsAny(pubkeys PublicKeySlice) bool {
func (slice PublicKeySlice) ContainsAny(pubkeys ...PublicKey) bool {
for _, pubkey := range pubkeys {
if slice.Contains(pubkey) {
return true
Expand Down

0 comments on commit 5ae2954

Please sign in to comment.