From c413a4780fdff6d48daa1204e7b8c2cb1d4576ab Mon Sep 17 00:00:00 2001 From: Coda Hale Date: Sat, 12 Apr 2014 11:38:41 -0700 Subject: [PATCH] Use a simplified loop. --- param/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/param/parse.go b/param/parse.go index e59432a..ae00998 100644 --- a/param/parse.go +++ b/param/parse.go @@ -159,7 +159,7 @@ func parseSlice(key, keytail string, values []string, target reflect.Value) { slice := reflect.MakeSlice(t, len(values), len(values)) kp := kpath(key, keytail) - for i, _ := range values { + for i := range values { // We actually cheat a little bit and modify the key so we can // generate better debugging messages later key := fmt.Sprintf("%s[%d]", kp, i)