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
51	return slice.SetUint64(commIds)
52}
53
54func (_ *Service) attesterSubnetIndices(currentSlot primitives.Slot) []uint64 {55	endEpoch := slots.ToEpoch(currentSlot) + 1
56	endSlot := params.BeaconConfig().SlotsPerEpoch.Mul(uint64(endEpoch))
57	var commIds []uint64
receiver name should not be an underscore, omit the name if it is unused
41	return cache.SubnetIDs.GetAllSubnets()
42}
43
44func (_ *Service) aggregatorSubnetIndices(currentSlot primitives.Slot) []uint64 {45	endEpoch := slots.ToEpoch(currentSlot) + 1
46	endSlot := params.BeaconConfig().SlotsPerEpoch.Mul(uint64(endEpoch))
47	var commIds []uint64
receiver name should not be an underscore, omit the name if it is unused
37	return s.cfg.attPool.SaveUnaggregatedAttestation(a)
38}
39
40func (_ *Service) persistentSubnetIndices() []uint64 {41	return cache.SubnetIDs.GetAllSubnets()
42}
43