From 57828a0ca16856ad734ee8cf1f31e331d7086d67 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Tue, 5 Jul 2022 19:05:32 -0700 Subject: [PATCH] Suppress pointless lint. --- internal/mempool/v1/mempool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/mempool/v1/mempool.go b/internal/mempool/v1/mempool.go index aa825424d..d77cc23cb 100644 --- a/internal/mempool/v1/mempool.go +++ b/internal/mempool/v1/mempool.go @@ -333,7 +333,7 @@ func (txmp *TxMempool) allEntriesSorted() []*WrappedTx { func (txmp *TxMempool) ReapMaxBytesMaxGas(maxBytes, maxGas int64) types.Txs { var totalGas, totalBytes int64 - var keep []types.Tx + var keep []types.Tx //nolint:prealloc for _, w := range txmp.allEntriesSorted() { // N.B. When computing byte size, we need to include the overhead for // encoding as protobuf to send to the application. @@ -364,7 +364,7 @@ func (txmp *TxMempool) TxsFront() *clist.CElement { return txmp.txs.Front() } // The result may have fewer than max elements (possibly zero) if the mempool // does not have that many transactions available. func (txmp *TxMempool) ReapMaxTxs(max int) types.Txs { - var keep []types.Tx + var keep []types.Tx //nolint:prealloc for _, w := range txmp.allEntriesSorted() { if max >= 0 && len(keep) >= max {