diff --git a/ecdsa/keygen/round_3.go b/ecdsa/keygen/round_3.go index c6871b7b..f6b14155 100644 --- a/ecdsa/keygen/round_3.go +++ b/ecdsa/keygen/round_3.go @@ -147,10 +147,9 @@ func (round *round3) Start() *tss.Error { var multiErr error if len(culprits) > 0 { for _, vssResult := range vssResults { - if vssResult.unWrappedErr == nil { - continue + if vssResult.unWrappedErr != nil { + multiErr = multierror.Append(multiErr, vssResult.unWrappedErr) } - multiErr = multierror.Append(multiErr, vssResult.unWrappedErr) } return round.WrapError(multiErr, culprits...) } diff --git a/eddsa/keygen/round_3.go b/eddsa/keygen/round_3.go index 4bbb15e7..476ab3d3 100644 --- a/eddsa/keygen/round_3.go +++ b/eddsa/keygen/round_3.go @@ -131,10 +131,9 @@ func (round *round3) Start() *tss.Error { var multiErr error if len(culprits) > 0 { for _, vssResult := range vssResults { - if vssResult.unWrappedErr == nil { - continue + if vssResult.unWrappedErr != nil { + multiErr = multierror.Append(multiErr, vssResult.unWrappedErr) } - multiErr = multierror.Append(multiErr, vssResult.unWrappedErr) } return round.WrapError(multiErr, culprits...) }