Skip to content

Commit 3654aea

Browse files
authored
p2p/simulations: fix gosimple nit (#15661)
1 parent f258a21 commit 3654aea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎p2p/simulations/mocker_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestMocker(t *testing.T) {
9191
select {
9292
case event := <-events:
9393
//if the event is a node Up event only
94-
if event.Node != nil && event.Node.Up == true {
94+
if event.Node != nil && event.Node.Up {
9595
//add the correspondent node ID to the map
9696
nodemap[event.Node.Config.ID] = true
9797
//this means all nodes got a nodeUp event, so we can continue the test

0 commit comments

Comments
 (0)