From 624feadea5e13fcd9b945832b688a0f4530521e5 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Sun, 24 Jul 2016 10:20:55 -0700 Subject: [PATCH] fixed govet golint typos --- buntdb_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/buntdb_test.go b/buntdb_test.go index ec9c31a..dac11b6 100644 --- a/buntdb_test.go +++ b/buntdb_test.go @@ -1064,7 +1064,7 @@ func benchOpenFillData(t *testing.B, N int, t.Fatal(err) } if n != uint64(N) { - t.Fatal("expecting '%v', got '%v'", N, n) + t.Fatalf("expecting '%v', got '%v'", N, n) } t.StartTimer() return db, keys, vals @@ -1165,12 +1165,12 @@ func benchScan(t *testing.B, asc bool, count int) { count++ return true }) - } else { - return tx.Descend("", func(key, val string) bool { - count++ - return true - }) } + return tx.Descend("", func(key, val string) bool { + count++ + return true + }) + }) if err != nil { t.Fatal(err)