We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a42130 commit e311859Copy full SHA for e311859
batch.go
@@ -4,7 +4,6 @@ import (
4
"bytes"
5
"context"
6
"encoding/json"
7
- "errors"
8
"fmt"
9
"net/http"
10
"net/url"
@@ -109,8 +108,6 @@ type BatchResponse struct {
109
108
Batch
110
}
111
112
-var ErrUploadBatchFileFailed = errors.New("upload batch file failed")
113
-
114
// CreateBatch — API call to Create batch.
115
func (c *Client) CreateBatch(
116
ctx context.Context,
@@ -202,7 +199,6 @@ func (c *Client) CreateBatchWithUploadFile(
202
199
Lines: request.Lines,
203
200
})
204
201
if err != nil {
205
- err = errors.Join(ErrUploadBatchFileFailed, err)
206
return
207
208
return c.CreateBatch(ctx, CreateBatchRequest{
0 commit comments