p2p/simulations: Remove superfluous error check

This commit is contained in:
lash 2019-03-18 18:45:29 +01:00
parent 91d15ad5b3
commit 9e168075b6

View file

@ -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,