Merge PR #3063: Fix linter

This commit is contained in:
Christopher Goes 2018-12-10 16:13:26 +01:00 committed by GitHub
parent 945803d586
commit 7d55bd1a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")
}
return validator
} else {
}
cachectx, _ := ctx.CacheContext()
keeper.ApplyAndReturnValidatorSetUpdates(cachectx)
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")
}
return validator
}
}
func validatorByPowerIndexExists(k Keeper, ctx sdk.Context, power []byte) bool {