aboutsummaryrefslogtreecommitdiff
path: root/bulk.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-07-21 14:28:15 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-07-21 14:42:45 +0200
commite3179558f05e9bb2c8c57fe9d0e916cb829df11c (patch)
treef2c5eb52ded19b870f075bed25e26e524701b2bc /bulk.go
parent9bcfd4733a7ae7d12129b024e93536f7136e4a8e (diff)
downloadgo-schwift-e3179558f05e9bb2c8c57fe9d0e916cb829df11c.tar.gz
bump Go to 1.26, replace errext.As with errors.AsType
Diffstat (limited to 'bulk.go')
-rw-r--r--bulk.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bulk.go b/bulk.go
index 7c08345..34f1be6 100644
--- a/bulk.go
+++ b/bulk.go
@@ -21,6 +21,7 @@ package schwift
import (
"context"
"encoding/json"
+ "errors"
"fmt"
"io"
"net/http"
@@ -29,7 +30,6 @@ import (
"strings"
"go.xyrillian.de/schwift/v2/capabilities"
- "go.xyrillian.de/schwift/v2/internal/errext"
)
// BulkUploadFormat enumerates possible archive formats for Container.BulkUpload().
@@ -216,7 +216,7 @@ func (a *Account) bulkDeleteSingle(ctx context.Context, objects []*Object, conta
numNotFound++
return nil
}
- if statusErr, ok := errext.As[UnexpectedStatusCodeError](err); ok {
+ if statusErr, ok := errors.AsType[UnexpectedStatusCodeError](err); ok {
errs = append(errs, BulkObjectError{
ContainerName: containerName,
ObjectName: objectName,