From 621e2b64ee1b3b6a6b46c9f3b4d10aaef40386bf Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Fri, 11 Jan 2019 14:08:29 +0100 Subject: [PATCH] p2p/simulations: revert Simulation.Run from master https://github.com/ethersphere/go-ethereum/pull/1077/files#r247078904 --- p2p/simulations/simulation.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/p2p/simulations/simulation.go b/p2p/simulations/simulation.go index b7e6204e5d..ae62c42b9c 100644 --- a/p2p/simulations/simulation.go +++ b/p2p/simulations/simulation.go @@ -49,11 +49,9 @@ func (s *Simulation) Run(ctx context.Context, step *Step) (result *StepResult) { defer stop() // perform the action - if step.Action != nil { - if err := step.Action(ctx); err != nil { - result.Error = err - return - } + if err := step.Action(ctx); err != nil { + result.Error = err + return } // wait for all node expectations to either pass, error or timeout