From 8d02c3eba09cce9c88a5c710cfda059189708c4b Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Wed, 29 Aug 2018 20:24:35 -0400 Subject: [PATCH] fix golint --- x/stake/keeper/delegation.go | 3 --- x/stake/keeper/slash.go | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/x/stake/keeper/delegation.go b/x/stake/keeper/delegation.go index cfe21c03f7..d19c9bf82e 100644 --- a/x/stake/keeper/delegation.go +++ b/x/stake/keeper/delegation.go @@ -426,9 +426,6 @@ func (k Keeper) BeginRedelegation(ctx sdk.Context, delegatorAddr, validatorSrcAd } // create the unbonding delegation - minTime := ctx.BlockHeader().Time.Add(params.UnbondingTime) - height := ctx.BlockHeader().Height - minTime, height, completeNow := k.getBeginInfo(ctx, params, validatorSrcAddr) if completeNow { // no need to create the redelegation object diff --git a/x/stake/keeper/slash.go b/x/stake/keeper/slash.go index be3572d7c3..0658afb862 100644 --- a/x/stake/keeper/slash.go +++ b/x/stake/keeper/slash.go @@ -22,6 +22,8 @@ import ( // CONTRACT: // Infraction committed at the current height or at a past height, // not at a height in the future +// +// nolint: gocyclo func (k Keeper) Slash(ctx sdk.Context, pubkey crypto.PubKey, infractionHeight int64, power int64, slashFactor sdk.Dec) { logger := ctx.Logger().With("module", "x/stake")