mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-05 04:55:18 +00:00
fix metalinter warnings
This commit is contained in:
@@ -85,7 +85,10 @@ func (txi *TxIndex) AddBatch(b *txindex.Batch) error {
|
||||
// Index indexes a single transaction using the given list of tags.
|
||||
func (txi *TxIndex) Index(result *types.TxResult) error {
|
||||
batch := txindex.NewBatch(1)
|
||||
batch.Add(result)
|
||||
err := batch.Add(result)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to add tx result to batch")
|
||||
}
|
||||
return txi.AddBatch(batch)
|
||||
}
|
||||
|
||||
@@ -342,10 +345,6 @@ func keyForTag(tag *abci.KVPair, result *types.TxResult) []byte {
|
||||
}
|
||||
}
|
||||
|
||||
func hashKey(hash []byte) string {
|
||||
return fmt.Sprintf("%X", hash)
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Utils
|
||||
|
||||
|
||||
Reference in New Issue
Block a user