Add golangci-lint to GHA & fix lint warnings

This commit is contained in:
arnaucube
2020-08-29 18:35:05 +02:00
parent 3232fdd5a4
commit 3093442590
7 changed files with 50 additions and 55 deletions

View File

@@ -154,7 +154,7 @@ func (tx *PebbleStorageTx) Add(atx db.Tx) {
func (tx *PebbleStorageTx) Commit() error {
batch := tx.PebbleStorage.pdb.NewBatch()
for _, v := range tx.cache {
batch.Set(v.K, v.V, nil)
_ = batch.Set(v.K, v.V, nil)
}
tx.cache = nil