aboutsummaryrefslogtreecommitdiffstats
path: root/core/bench_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/bench_test.go')
-rw-r--r--core/bench_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bench_test.go b/core/bench_test.go
index ee30cfed0..748aebe40 100644
--- a/core/bench_test.go
+++ b/core/bench_test.go
@@ -149,7 +149,7 @@ func benchInsertChain(b *testing.B, disk bool, gen func(int, *BlockGen)) {
// Create the database in memory or in a temporary directory.
var db ethdb.Database
if !disk {
- db, _ = ethdb.NewMemDatabase()
+ db = ethdb.NewMemDatabase()
} else {
dir, err := ioutil.TempDir("", "eth-core-bench")
if err != nil {