Skip to content

Commit

Permalink
fix(tss/error): add extra nil check when constructing tss.Error
Browse files Browse the repository at this point in the history
  • Loading branch information
notatestuser committed Apr 12, 2024
1 parent 84d0cd4 commit f5a31bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tss/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ type VictimAndCulprit struct {
}

func NewError(err error, task string, round int, victim *PartyID, culprits ...*PartyID) *Error {
if err == nil {
return nil
}
return &Error{cause: err, task: task, round: round, victim: victim, culprits: culprits}
}

Expand Down

0 comments on commit f5a31bc

Please sign in to comment.