fix lint: trailing newline, goimports alignment

This commit is contained in:
Giulio Rebuffo 2026-03-05 16:36:54 +00:00
parent 8851d6a5be
commit 0ba2cb154f
4 changed files with 1 additions and 4 deletions

View file

@ -412,4 +412,3 @@ type ClientVersionV1 struct {
func (v *ClientVersionV1) String() string {
return fmt.Sprintf("%s-%s-%s-%s", v.Code, v.Name, v.Version, v.Commit)
}

View file

@ -1098,7 +1098,7 @@ func (api *ConsensusAPI) checkFork(timestamp uint64, forks ...forks.Fork) bool {
func (api *ConsensusAPI) ExchangeCapabilities([]string) []string {
// Methods that should not be advertised via V1 capabilities
skip := map[string]bool{
"ExchangeCapabilities": true,
"ExchangeCapabilities": true,
}
valueT := reflect.TypeOf(api)
caps := make([]string, 0, valueT.NumMethod())

View file

@ -152,7 +152,6 @@ func (s *SszRestServer) registerRoutes(mux *http.ServeMux) {
// getClientVersion
mux.HandleFunc("POST /engine/v1/get_client_version", s.handleGetClientVersion)
}
// --- newPayload handlers ---

View file

@ -139,4 +139,3 @@ func TestSszRestSuccessFormat(t *testing.T) {
t.Errorf("body mismatch")
}
}