drop extra else block, outdent its block, and make linter happy

This commit is contained in:
Alessio Treglia 2018-12-10 14:36:20 +00:00
parent 24a1670cf0
commit 2e05d4e3d7
1 changed files with 7 additions and 8 deletions

View File

@ -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)
@ -235,7 +235,6 @@ 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
}
} }
func validatorByPowerIndexExists(k Keeper, ctx sdk.Context, power []byte) bool { func validatorByPowerIndexExists(k Keeper, ctx sdk.Context, power []byte) bool {