소스 검색

p2p/simulations: fix gosimple nit (#15661)

Felix Lange 8 년 전
부모
커밋
3654aeaa4f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      p2p/simulations/mocker_test.go

+ 1 - 1
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