Skip to content

Commit

Permalink
fix(SPV-846): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed Jul 4, 2024
1 parent 7b460ba commit 9ba5fdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var ErrMissingXpriv = models.SPVError{Message: "xpriv missing", StatusCode: 401,
var ErrCouldNotFindDraftTransaction = models.SPVError{Message: "could not find draft transaction", StatusCode: 404, Code: "error-draft-transaction-not-found"}

// WrapError wraps an error into SPVError
func WrapError(err error) *models.SPVError {
func WrapError(err error) error {
if err == nil {
return nil
}
Expand All @@ -29,7 +29,7 @@ func WrapError(err error) *models.SPVError {
}

// WrapResponseError wraps a http response into SPVError
func WrapResponseError(res *http.Response) *models.SPVError {
func WrapResponseError(res *http.Response) error {
if res == nil {
return nil
}
Expand All @@ -48,7 +48,7 @@ func WrapResponseError(res *http.Response) *models.SPVError {
}
}

func CreateErrorResponse(code string, message string) *models.SPVError {
func CreateErrorResponse(code string, message string) error {
return &models.SPVError{
StatusCode: http.StatusInternalServerError,
Code: code,
Expand Down

0 comments on commit 9ba5fdf

Please sign in to comment.