Skip to content

Commit

Permalink
Rename unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Feb 26, 2024
1 parent 41e2730 commit 55d0628
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions share/dkg/rabin/dkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 55d0628

Please sign in to comment.