From 47ec132917e8d128d3c2c374b6e3da1a623a2fd3 Mon Sep 17 00:00:00 2001 From: Yang Song Date: Mon, 8 Nov 2021 12:19:03 +0800 Subject: [PATCH] Removed extra empty line --- projection/validator/validator.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/projection/validator/validator.go b/projection/validator/validator.go index b7ba4526..d10d3ec4 100644 --- a/projection/validator/validator.go +++ b/projection/validator/validator.go @@ -132,7 +132,6 @@ func (projection *Validator) HandleEvents(height int64, events []event_entity.Ev for _, event := range events { if blockCreatedEvent, ok := event.(*event_usecase.BlockCreated); ok { - signatureCount := len(blockCreatedEvent.Block.Signatures) commitmentRows := make([]view.ValidatorBlockCommitmentRow, 0, signatureCount) @@ -220,7 +219,6 @@ func (projection *Validator) HandleEvents(height int64, events []event_entity.Ev } } else if votedEvent, ok := event.(*event_usecase.MsgVote); ok { - projection.logger.Debug("handling MsgVote event") mutVotedValidator, votedValidatorQueryErr := validatorsView.FindBy(view.ValidatorIdentity{ @@ -239,7 +237,6 @@ func (projection *Validator) HandleEvents(height int64, events []event_entity.Ev if votedValidatorUpdateErr := validatorsView.Update(mutVotedValidator); votedValidatorUpdateErr != nil { return fmt.Errorf("error updating voted validator: %v", votedValidatorUpdateErr) } - } } @@ -251,7 +248,6 @@ func (projection *Validator) HandleEvents(height int64, events []event_entity.Ev return fmt.Errorf("error committing changes: %v", err) } committed = true - return nil }