errcheck; sort some stuff out

This commit is contained in:
Zach Ramsay
2017-10-03 18:49:20 -04:00
committed by Ethan Buchman
parent 563faa98de
commit d7cb291fb2
26 changed files with 61 additions and 154 deletions

View File

@@ -40,11 +40,7 @@ func benchmarkTxIndex(txsCount int, b *testing.B) {
if err != nil {
b.Fatal(err)
}
defer func() {
if err := os.RemoveAll(dir); err != nil {
b.Fatal(err)
}
}()
defer os.RemoveAll(dir) // nolint: errcheck
store := db.NewDB("tx_index", "leveldb", dir)
indexer := &TxIndex{store: store}