From f5d67fbd9c633bd2e0e815ada0a8dea352ea42d4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 31 Jul 2018 12:16:54 +0200 Subject: .gometalinter.json: enable gofmt The part that we want from gofmt is simplify (-s). Fix all code that needs fixing. Update #538 --- prog/alloc_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prog/alloc_test.go') diff --git a/prog/alloc_test.go b/prog/alloc_test.go index 261b18d0c..c83063747 100644 --- a/prog/alloc_test.go +++ b/prog/alloc_test.go @@ -15,7 +15,7 @@ func TestMemAlloc(t *testing.T) { size int // if positive do noteAlloc, otherwise -- alloc } tests := [][]op{ - []op{ + { // Just sequential allocation. {0, -1}, {64, -64}, @@ -23,7 +23,7 @@ func TestMemAlloc(t *testing.T) { {256, -16}, {320, -8}, }, - []op{ + { // First reserve some memory and then allocate. {0, 1}, {64, 63}, -- cgit mrf-deployment