This commit is contained in:
Dan Laine 2020-05-11 11:48:16 -04:00
parent cb3110f424
commit fa230e6e90
1 changed files with 2 additions and 4 deletions

View File

@ -221,10 +221,8 @@ func init() {
if id != "" {
err = cb58.FromString(id)
if err != nil {
if err != nil {
errs.Add(fmt.Errorf("couldn't parse bootstrap peer id to bytes: %w", err))
return
}
errs.Add(fmt.Errorf("couldn't parse bootstrap peer id to bytes: %w", err))
return
}
peerID, err := ids.ToShortID(cb58.Bytes)
if err != nil {