parameter 'replica' seems to be unused, consider removing or renaming it as _
492 result []*payload.Object_Distance
493}
494
495func newPairingHeap(num, replica int) Aggregator {496 return &valdPairingHeapAggr{
497 num: num,
498 ph: new(PairingHeap),
parameter 'address' seems to be unused, consider removing or renaming it as _
96 return ctrl.controlFunc
97}
98
99func (ctrl *control) controlFunc(network, address string, c syscall.RawConn) (err error) {100 return c.Control(func(fd uintptr) {
101 f := int(fd)
102 var ierr error
Description
Unused parameters in functions or methods should be replaced with _
(underscore) or removed.
Functions or methods with unused parameters can be a symptom of unfinished
refactoring or a bug. If an unused parameter is present, it should be named _
(underscore) to avoid raising this issue and better readability.
Bad practice
func abc(unused string) {
fmt.Println("Not using any passed params.")
}
Recommended
func abc(_ string) {
fmt.Println("Not using any passed params.")
}
func abc() {
fmt.Println("Not using any passed params.")
}