From 3654aeaa4f87452ac5bc801a18808189595e2ef8 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 13 Dec 2017 03:15:27 +0100 Subject: [PATCH] p2p/simulations: fix gosimple nit (#15661) --- p2p/simulations/mocker_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/simulations/mocker_test.go b/p2p/simulations/mocker_test.go index 6b866fb74c..de8ec0b337 100644 --- a/p2p/simulations/mocker_test.go +++ b/p2p/simulations/mocker_test.go @@ -91,7 +91,7 @@ func TestMocker(t *testing.T) { select { case event := <-events: //if the event is a node Up event only - if event.Node != nil && event.Node.Up == true { + if event.Node != nil && event.Node.Up { //add the correspondent node ID to the map nodemap[event.Node.Config.ID] = true //this means all nodes got a nodeUp event, so we can continue the test