mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
lint: various fixes
## Description various linitng fixes
This commit is contained in:
@@ -707,7 +707,7 @@ func (cache *mapTxCache) Push(tx types.Tx) bool {
|
||||
|
||||
if cache.list.Len() >= cache.size {
|
||||
popped := cache.list.Front()
|
||||
poppedTxHash := popped.Value.([sha256.Size]byte)
|
||||
poppedTxHash := popped.Value.([sha256.Size]byte) //nolint:staticcheck // SA5011: possible nil pointer dereference
|
||||
delete(cache.cacheMap, poppedTxHash)
|
||||
if popped != nil {
|
||||
cache.list.Remove(popped)
|
||||
|
||||
Reference in New Issue
Block a user