drop extra else block, outdent its block, and make linter happy
This commit is contained in:
parent
24a1670cf0
commit
2e05d4e3d7
|
@ -227,7 +227,7 @@ func TestingUpdateValidator(keeper Keeper, ctx sdk.Context, validator types.Vali
|
||||||
panic("validator expected but not found")
|
panic("validator expected but not found")
|
||||||
}
|
}
|
||||||
return validator
|
return validator
|
||||||
} else {
|
}
|
||||||
cachectx, _ := ctx.CacheContext()
|
cachectx, _ := ctx.CacheContext()
|
||||||
keeper.ApplyAndReturnValidatorSetUpdates(cachectx)
|
keeper.ApplyAndReturnValidatorSetUpdates(cachectx)
|
||||||
validator, found := keeper.GetValidator(cachectx, validator.OperatorAddr)
|
validator, found := keeper.GetValidator(cachectx, validator.OperatorAddr)
|
||||||
|
@ -236,7 +236,6 @@ func TestingUpdateValidator(keeper Keeper, ctx sdk.Context, validator types.Vali
|
||||||
}
|
}
|
||||||
return validator
|
return validator
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func validatorByPowerIndexExists(k Keeper, ctx sdk.Context, power []byte) bool {
|
func validatorByPowerIndexExists(k Keeper, ctx sdk.Context, power []byte) bool {
|
||||||
store := ctx.KVStore(k.storeKey)
|
store := ctx.KVStore(k.storeKey)
|
||||||
|
|
Loading…
Reference in New Issue