mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-21 06:36:19 +00:00
fix lint failures with 1.31 (#5489)
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ func (state State) IsEmpty() bool {
|
||||
return state.Validators == nil // XXX can't compare to Empty
|
||||
}
|
||||
|
||||
//ToProto takes the local state type and returns the equivalent proto type
|
||||
// ToProto takes the local state type and returns the equivalent proto type
|
||||
func (state *State) ToProto() (*tmstate.State, error) {
|
||||
if state == nil {
|
||||
return nil, errors.New("state is nil")
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ func TestStateCopy(t *testing.T) {
|
||||
%v`, state))
|
||||
}
|
||||
|
||||
//TestMakeGenesisStateNilValidators tests state's consistency when genesis file's validators field is nil.
|
||||
// TestMakeGenesisStateNilValidators tests state's consistency when genesis file's validators field is nil.
|
||||
func TestMakeGenesisStateNilValidators(t *testing.T) {
|
||||
doc := types.GenesisDoc{
|
||||
ChainID: "dummy",
|
||||
|
||||
+2
-2
@@ -70,7 +70,7 @@ type Store interface {
|
||||
PruneStates(int64, int64) error
|
||||
}
|
||||
|
||||
//dbStore wraps a db (github.com/tendermint/tm-db)
|
||||
// dbStore wraps a db (github.com/tendermint/tm-db)
|
||||
type dbStore struct {
|
||||
db dbm.DB
|
||||
}
|
||||
@@ -390,7 +390,7 @@ func (store dbStore) LoadABCIResponses(height int64) (*tmstate.ABCIResponses, er
|
||||
// Exposed for testing.
|
||||
func (store dbStore) SaveABCIResponses(height int64, abciResponses *tmstate.ABCIResponses) error {
|
||||
var dtxs []*abci.ResponseDeliverTx
|
||||
//strip nil values,
|
||||
// strip nil values,
|
||||
for _, tx := range abciResponses.DeliverTxs {
|
||||
if tx != nil {
|
||||
dtxs = append(dtxs, tx)
|
||||
|
||||
@@ -613,7 +613,6 @@ LOOP:
|
||||
return filteredHashes
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Keys
|
||||
|
||||
func isTagKey(key []byte) bool {
|
||||
|
||||
Reference in New Issue
Block a user