From bd5405189eb27d463e25c43691b19dbdf174d3a8 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 10 Apr 2016 21:29:42 +0200 Subject: Fix "go tool vet -shadow=true" warnings Among those one real bug. --- integration_tests/performance_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'integration_tests/performance_test.go') diff --git a/integration_tests/performance_test.go b/integration_tests/performance_test.go index 83bf207..9a0399a 100644 --- a/integration_tests/performance_test.go +++ b/integration_tests/performance_test.go @@ -45,7 +45,8 @@ func BenchmarkStreamRead(t *testing.B) { if t.N > mb { // Grow file so we can satisfy the test //fmt.Printf("Growing file to %d MB... ", t.N) - f2, err := os.OpenFile(fn, os.O_WRONLY|os.O_APPEND, 0666) + var f2 *os.File + f2, err = os.OpenFile(fn, os.O_WRONLY|os.O_APPEND, 0666) if err != nil { fmt.Println(err) t.FailNow() -- cgit v1.2.3