Method receiver 'fv' is not referenced in method's body, consider removing it
167}
168
169// GetAttestationData for mocking.
170func (fv *FakeValidator) GetAttestationData(_ context.Context, _ primitives.Slot, _ [fieldparams.BLSPubkeyLength]byte) *ethpb.AttestationData {171 return nil
172}
173
Unused method receiver '_', consider removing it
142 panic("implement me")
143}
144
145func (_ *Validator) SubmitAttestations(_ context.Context, _ primitives.Slot, _ [][48]byte, _ []*ethpb.AttestationData) {146 panic("implement me")
147}
148
Description
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused.
Bad practice
func (f *Unix) Name() string {
return "unix"
}
func (_ *Unix) Name() string {
return "unix"
}
Recommended
func (*Unix) Name() string {
return "unix"
}