diff options
Diffstat (limited to 'tpl/collections')
-rw-r--r-- | tpl/collections/merge.go | 3 | ||||
-rw-r--r-- | tpl/collections/reflect_helpers.go | 3 | ||||
-rw-r--r-- | tpl/collections/where_test.go | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/tpl/collections/merge.go b/tpl/collections/merge.go index c6aa50eba..8c019e412 100644 --- a/tpl/collections/merge.go +++ b/tpl/collections/merge.go @@ -14,14 +14,13 @@ package collections import ( + "errors" "fmt" "reflect" "strings" "github.com/gohugoio/hugo/common/hreflect" "github.com/gohugoio/hugo/common/maps" - - "errors" ) // Merge creates a copy of the final parameter in params and merges the preceding diff --git a/tpl/collections/reflect_helpers.go b/tpl/collections/reflect_helpers.go index a295441ec..56909d30e 100644 --- a/tpl/collections/reflect_helpers.go +++ b/tpl/collections/reflect_helpers.go @@ -14,11 +14,10 @@ package collections import ( + "errors" "fmt" "reflect" - "errors" - "github.com/mitchellh/hashstructure" ) diff --git a/tpl/collections/where_test.go b/tpl/collections/where_test.go index 08d8963c5..7ec9572e0 100644 --- a/tpl/collections/where_test.go +++ b/tpl/collections/where_test.go @@ -876,7 +876,7 @@ func BenchmarkWhereOps(b *testing.B) { j := rand.Intn(i + 1) seq[i], seq[j] = seq[j], seq[i] } - //results, err = ns.Where(context.Background(), test.seq, test.key, test.op, test.match) + // results, err = ns.Where(context.Background(), test.seq, test.key, test.op, test.match) runOps := func(b *testing.B, op, match string) { _, err := ns.Where(ctx, seq, "foo", op, match) if err != nil { @@ -901,5 +901,4 @@ func BenchmarkWhereOps(b *testing.B) { runOps(b, "like", "^bar") } }) - } |