mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
fix lint: trailing newline, goimports alignment
This commit is contained in:
parent
8851d6a5be
commit
0ba2cb154f
4 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -152,7 +152,6 @@ func (s *SszRestServer) registerRoutes(mux *http.ServeMux) {
|
|||
|
||||
// getClientVersion
|
||||
mux.HandleFunc("POST /engine/v1/get_client_version", s.handleGetClientVersion)
|
||||
|
||||
}
|
||||
|
||||
// --- newPayload handlers ---
|
||||
|
|
|
|||
|
|
@ -139,4 +139,3 @@ func TestSszRestSuccessFormat(t *testing.T) {
|
|||
t.Errorf("body mismatch")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue