From e3fa9820ec2b22e7469ab7f8ff10835e59cbc41f Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Mon, 15 Oct 2018 23:06:46 +0200 Subject: [PATCH] Fix linter warning --- x/slashing/hooks.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/slashing/hooks.go b/x/slashing/hooks.go index 6695369284..ed07bc0c75 100644 --- a/x/slashing/hooks.go +++ b/x/slashing/hooks.go @@ -8,9 +8,9 @@ import ( func (k Keeper) onValidatorBonded(ctx sdk.Context, address sdk.ConsAddress) { // Update the signing info start height or create a new signing info - signingInfo, found := k.getValidatorSigningInfo(ctx, address) + _, found := k.getValidatorSigningInfo(ctx, address) if !found { - signingInfo = ValidatorSigningInfo{ + signingInfo := ValidatorSigningInfo{ StartHeight: ctx.BlockHeight(), IndexOffset: 0, JailedUntil: time.Unix(0, 0),