Skip to content

Commit

Permalink
Simplify a 'for range' statement
Browse files Browse the repository at this point in the history
  • Loading branch information
cdevienne committed Jul 9, 2018
1 parent d458b2a commit b71deed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/alloptions/alloptions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit b71deed

Please sign in to comment.