From c9deedf0eb38aa926f9faa71be2367208a37a727 Mon Sep 17 00:00:00 2001 From: Thane Thomson Date: Wed, 4 May 2022 18:14:54 -0400 Subject: [PATCH] types: Improve legibility Signed-off-by: Thane Thomson --- types/vote_set.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/vote_set.go b/types/vote_set.go index f83c1bce1..d3c156242 100644 --- a/types/vote_set.go +++ b/types/vote_set.go @@ -624,22 +624,22 @@ func (voteSet *VoteSet) MakeExtendedCommit() *ExtendedCommit { } // For every validator, get the precommit with extensions - extCommitSigs := make([]ExtendedCommitSig, len(voteSet.votes)) + sigs := make([]ExtendedCommitSig, len(voteSet.votes)) for i, v := range voteSet.votes { - extCommitSig := v.ExtendedCommitSig() + sig := v.ExtendedCommitSig() // if block ID exists but doesn't match, exclude sig - if extCommitSig.ForBlock() && !v.BlockID.Equals(*voteSet.maj23) { - extCommitSig = NewExtendedCommitSigAbsent() + if sig.ForBlock() && !v.BlockID.Equals(*voteSet.maj23) { + sig = NewExtendedCommitSigAbsent() } - extCommitSigs[i] = extCommitSig + sigs[i] = sig } return &ExtendedCommit{ Height: voteSet.GetHeight(), Round: voteSet.GetRound(), BlockID: *voteSet.maj23, - ExtendedSignatures: extCommitSigs, + ExtendedSignatures: sigs, } }