Skip to content

Commit

Permalink
Removed extra empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
ysong42 committed Nov 8, 2021
1 parent 01bdb0c commit 47ec132
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions projection/validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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{
Expand All @@ -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)
}

}
}

Expand All @@ -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
}

Expand Down

0 comments on commit 47ec132

Please sign in to comment.