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 -4
View File
@@ -94,10 +94,7 @@ func generateTestChain() (*core.Genesis, []*types.Block) {
func TestGethClient(t *testing.T) {
backend, _ := newTestBackend(t)
client, err := backend.Attach()
if err != nil {
t.Fatal(err)
}
client := backend.Attach()
defer backend.Close()
defer client.Close()