Merge PR #4881: Linting Galore
This commit is contained in:
committed by
Alexander Bezobchuk
parent
89b1220398
commit
3a4f1fc4d4
+3
-3
@@ -246,18 +246,18 @@ func UpgradeableStoreLoader(upgradeInfoPath string) StoreLoader {
|
||||
// there is a migration file, let's execute
|
||||
data, err := ioutil.ReadFile(upgradeInfoPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Cannot read upgrade file %s: %v", upgradeInfoPath, err)
|
||||
return fmt.Errorf("cannot read upgrade file %s: %v", upgradeInfoPath, err)
|
||||
}
|
||||
|
||||
var upgrades storetypes.StoreUpgrades
|
||||
err = json.Unmarshal(data, &upgrades)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Cannot parse upgrade file: %v", err)
|
||||
return fmt.Errorf("cannot parse upgrade file: %v", err)
|
||||
}
|
||||
|
||||
err = ms.LoadLatestVersionAndUpgrade(&upgrades)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Load and upgrade database: %v", err)
|
||||
return fmt.Errorf("load and upgrade database: %v", err)
|
||||
}
|
||||
|
||||
// if we have a successful load, we delete the file
|
||||
|
||||
@@ -626,10 +626,6 @@ func handlerMsgCounter(t *testing.T, capKey *sdk.KVStoreKey, deliverKey []byte)
|
||||
}
|
||||
}
|
||||
|
||||
func i2b(i int64) []byte {
|
||||
return []byte{byte(i)}
|
||||
}
|
||||
|
||||
func getIntFromStore(store sdk.KVStore, key []byte) int64 {
|
||||
bz := store.Get(key)
|
||||
if len(bz) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user