prysmaticlabs / prysm

Poorly chosen receiver name SCC-ST1006
Anti-pattern
Minor
3 occurrences in this check
receiver name should not be an underscore, omit the name if it is unused
54	return slice.SetUint64(commIds)
55}
56
57func (_ *Service) attesterSubnetIndices(currentSlot primitives.Slot) []uint64 {58	endEpoch := slots.ToEpoch(currentSlot) + 1
59	endSlot := params.BeaconConfig().SlotsPerEpoch.Mul(uint64(endEpoch))
60	var (
receiver name should not be an underscore, omit the name if it is unused
40	return cache.SubnetIDs.GetAllSubnets()
41}
42
43func (_ *Service) aggregatorSubnetIndices(currentSlot primitives.Slot) []uint64 {44	endEpoch := slots.ToEpoch(currentSlot) + 1
45	endSlot := params.BeaconConfig().SlotsPerEpoch.Mul(uint64(endEpoch))
46	var commIds []uint64
receiver name should not be an underscore, omit the name if it is unused
36	return s.cfg.attPool.SaveUnaggregatedAttestation(a)
37}
38
39func (_ *Service) persistentSubnetIndices() []uint64 {40	return cache.SubnetIDs.GetAllSubnets()
41}
42