node: remove unused error return from Attach (#27450)

node: Delete the unused error from return parameters of Node.Attach() func
This commit is contained in:
Sanghee Choi
2023-06-14 08:24:47 -04:00
committed by GitHub
parent 6f08c2f3f1
commit acc2a2ac61
8 changed files with 10 additions and 29 deletions
+1 -5
View File
@@ -268,11 +268,7 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*enode.Node, network ui
}
}
// Attach to the client and retrieve and interesting metadatas
api, err := stack.Attach()
if err != nil {
stack.Close()
return nil, err
}
api := stack.Attach()
client := ethclient.NewClient(api)
return &faucet{