From 55d06287e0203f94962ac9dc3bbfc620ebd1bbf2 Mon Sep 17 00:00:00 2001 From: lauener Date: Mon, 26 Feb 2024 10:33:36 +0100 Subject: [PATCH] Rename unused parameters --- .golangci.yml | 2 +- share/dkg/rabin/dkg.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index bf7b88a4f..991871a6d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -212,7 +212,7 @@ issues: # Maximum count of issues with the same text. # Set to 0 to disable. # Default: 3 - #max-same-issues: 50 + max-same-issues: 50 exclude-rules: - source: "^//\\s*go:generate\\s" diff --git a/share/dkg/rabin/dkg.go b/share/dkg/rabin/dkg.go index 87715af92..267e0b9f7 100644 --- a/share/dkg/rabin/dkg.go +++ b/share/dkg/rabin/dkg.go @@ -375,7 +375,7 @@ func (d *DistKeyGenerator) Certified() bool { // the distributed public key with SecretCommits() and ProcessSecretCommits(). func (d *DistKeyGenerator) QUAL() []int { var good []int - d.qualIter(func(i uint32, v *vss.Verifier) bool { + d.qualIter(func(i uint32, _ *vss.Verifier) bool { good = append(good, int(i)) return true }) @@ -384,7 +384,7 @@ func (d *DistKeyGenerator) QUAL() []int { func (d *DistKeyGenerator) isInQUAL(idx uint32) bool { var found bool - d.qualIter(func(i uint32, v *vss.Verifier) bool { + d.qualIter(func(i uint32, _ *vss.Verifier) bool { if i == idx { found = true return false @@ -603,7 +603,7 @@ func (d *DistKeyGenerator) ProcessReconstructCommits(rs *ReconstructCommits) err func (d *DistKeyGenerator) Finished() bool { var ret = true var nb = 0 - d.qualIter(func(idx uint32, v *vss.Verifier) bool { + d.qualIter(func(idx uint32, _ *vss.Verifier) bool { nb++ // ALL QUAL members should have their commitments by now either given or // reconstructed.