From 9e168075b6742bb5654327b658ea2b1ed72604c9 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 5c8b4f64fb..684a2d0579 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,