From b71deed149f636ede8bdf6028a3216118af770d5 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Mon, 9 Jul 2018 21:20:35 +0200 Subject: [PATCH] Simplify a 'for range' statement --- examples/alloptions/alloptions_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/alloptions/alloptions_test.go b/examples/alloptions/alloptions_test.go index c91351c..1cf6d32 100644 --- a/examples/alloptions/alloptions_test.go +++ b/examples/alloptions/alloptions_test.go @@ -277,7 +277,7 @@ func TestAll(t *testing.T) { if msg.GetReply() != "Hi there" { t.Errorf("Expected 'Hi there', got '%s'", msg.GetReply()) } - for _ = range []int{0, 1} { + for range []int{0, 1} { select { case rep := <-repChan: if rep != "Hi there" {