Method receiver 's' is not referenced in method's body, consider removing it
1095
1096// SyncCommitteeSelections responds with appropriate message and status code according the spec:
1097// https://ethereum.github.io/beacon-APIs/#/Validator/submitSyncCommitteeSelections.
1098func (s *Server) SyncCommitteeSelections(w http.ResponseWriter, _ *http.Request) {1099 httputil.HandleError(w, "Endpoint not implemented", 501)
1100}
1101
Method receiver 's' is not referenced in method's body, consider removing it
1089
1090// BeaconCommitteeSelections responds with appropriate message and status code according the spec:
1091// https://ethereum.github.io/beacon-APIs/#/Validator/submitBeaconCommitteeSelections.
1092func (s *Server) BeaconCommitteeSelections(w http.ResponseWriter, _ *http.Request) {1093 httputil.HandleError(w, "Endpoint not implemented", 501)
1094}
1095
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"
}