chore: enable errcheck linter (#16406)
This commit is contained in:
@@ -118,6 +118,8 @@ func initTestStores(t *testing.T) (storetypes.KVStore, storetypes.KVStore) {
|
||||
key2 := storetypes.NewKVStoreKey("store2")
|
||||
require.NotPanics(t, func() { ms.MountStoreWithDB(key1, storetypes.StoreTypeIAVL, db) })
|
||||
require.NotPanics(t, func() { ms.MountStoreWithDB(key2, storetypes.StoreTypeIAVL, db) })
|
||||
require.NotPanics(t, func() { ms.LoadLatestVersion() })
|
||||
require.NotPanics(t, func() {
|
||||
_ = ms.LoadLatestVersion()
|
||||
})
|
||||
return ms.GetKVStore(key1), ms.GetKVStore(key2)
|
||||
}
|
||||
|
||||
@@ -141,8 +141,8 @@ func SignCheckDeliver(
|
||||
require.False(t, finalizeSuccess)
|
||||
}
|
||||
|
||||
app.Commit()
|
||||
|
||||
_, err = app.Commit()
|
||||
require.NoError(t, err)
|
||||
gInfo := sdk.GasInfo{GasWanted: uint64(txResult.GasWanted), GasUsed: uint64(txResult.GasUsed)}
|
||||
txRes := sdk.Result{Data: txResult.Data, Log: txResult.Log, Events: txResult.Events}
|
||||
if finalizeSuccess {
|
||||
|
||||
Reference in New Issue
Block a user