Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dB2510 committed May 15, 2023
1 parent c531a6d commit fb01466
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/validatorapi/validatorapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -1000,11 +1000,10 @@ func (c Component) convertValidators(vals map[eth2p0.ValidatorIndex]*eth2v1.Vali
pubshare, ok := c.getPubShareFunc(val.Validator.PublicKey)
if !ok && !ignoreNotFound {
return nil, errors.New("pubshare not found")
}

if ok {
} else if ok {
val.Validator.PublicKey = pubshare
}

resp[vIdx] = val
}

Expand Down

0 comments on commit fb01466

Please sign in to comment.