Skip to content

Commit

Permalink
remove errors.Join
Browse files Browse the repository at this point in the history
  • Loading branch information
sashabaranov committed Jun 26, 2024
1 parent 0a42130 commit 6bfd7a6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"net/http"
"net/url"
Expand Down Expand Up @@ -109,8 +108,6 @@ type BatchResponse struct {
Batch
}

var ErrUploadBatchFileFailed = errors.New("upload batch file failed")

// CreateBatch — API call to Create batch.
func (c *Client) CreateBatch(
ctx context.Context,
Expand Down Expand Up @@ -202,7 +199,6 @@ func (c *Client) CreateBatchWithUploadFile(
Lines: request.Lines,
})
if err != nil {
err = errors.Join(ErrUploadBatchFileFailed, err)
return
}
return c.CreateBatch(ctx, CreateBatchRequest{
Expand Down

0 comments on commit 6bfd7a6

Please sign in to comment.