From d2dbcc97b1aa834fd37a6e8c7aaaf3804bed7043 Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 18 Mar 2019 18:45:29 +0100 Subject: [PATCH] p2p/simulations: Remove superfluous error check --- p2p/simulations/adapters/exec.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/p2p/simulations/adapters/exec.go b/p2p/simulations/adapters/exec.go index 4ca8e1e11b..6d1c13f3c7 100644 --- a/p2p/simulations/adapters/exec.go +++ b/p2p/simulations/adapters/exec.go @@ -118,9 +118,6 @@ func (e *ExecAdapter) NewNode(config *NodeConfig) (Node, error) { // listen on a localhost port, which we set when we // initialise NodeConfig (usually a random port) conf.Stack.P2P.ListenAddr = fmt.Sprintf(":%d", config.Port) - if err != nil { - return nil, err - } node := &ExecNode{ ID: config.ID,