Skip to content

Commit e311859

Browse files
authored
remove errors.Join (#778)
1 parent 0a42130 commit e311859

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

batch.go

-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"bytes"
55
"context"
66
"encoding/json"
7-
"errors"
87
"fmt"
98
"net/http"
109
"net/url"
@@ -109,8 +108,6 @@ type BatchResponse struct {
109108
Batch
110109
}
111110

112-
var ErrUploadBatchFileFailed = errors.New("upload batch file failed")
113-
114111
// CreateBatch — API call to Create batch.
115112
func (c *Client) CreateBatch(
116113
ctx context.Context,
@@ -202,7 +199,6 @@ func (c *Client) CreateBatchWithUploadFile(
202199
Lines: request.Lines,
203200
})
204201
if err != nil {
205-
err = errors.Join(ErrUploadBatchFileFailed, err)
206202
return
207203
}
208204
return c.CreateBatch(ctx, CreateBatchRequest{

0 commit comments

Comments
 (0)