From 2651806fa08ade9632c30d4c47777ecbf7a94542 Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Sat, 15 Jun 2019 19:01:54 +0300 Subject: [PATCH] Removed unnecessary lines as requested --- pkg/dmsg/server_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/dmsg/server_test.go b/pkg/dmsg/server_test.go index 40815044e..dc1add595 100644 --- a/pkg/dmsg/server_test.go +++ b/pkg/dmsg/server_test.go @@ -303,10 +303,6 @@ func TestServer_Serve(t *testing.T) { pickedRemotes := make([]int, 0, initiatorsCount) for i := 0; i < initiatorsCount; i++ { remote := rand.Intn(remotesCount) - if _, ok := usedRemotes[remote]; !ok { - usedRemotes[remote] = 0 - } - usedRemotes[remote] = usedRemotes[remote] + 1 pickedRemotes = append(pickedRemotes, remote) }