From 58b9cf3478a3a4e343bab235f0b0851a0b459f50 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 14 Oct 2016 07:52:33 +0100 Subject: [PATCH] Use go fmt simplify --- util/data/data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/data/data.go b/util/data/data.go index 02a7b6e2..84c8c794 100644 --- a/util/data/data.go +++ b/util/data/data.go @@ -114,7 +114,7 @@ func (d *Doc) Keys(path ...string) *Doc { out := []interface{}{} if m, ok := d.Get(path...).Data().(map[string]interface{}); ok { - for k, _ := range m { + for k := range m { out = append(out, k) } } @@ -420,7 +420,7 @@ func (d *Doc) Set(value interface{}, path ...string) (*Doc, error) { out := []interface{}{} - for i, _ := range a { + for i := range a { if k == len(path)-1 { a[i] = value