diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-07-21 14:28:15 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-07-21 14:42:45 +0200 |
| commit | e3179558f05e9bb2c8c57fe9d0e916cb829df11c (patch) | |
| tree | f2c5eb52ded19b870f075bed25e26e524701b2bc /bulk.go | |
| parent | 9bcfd4733a7ae7d12129b024e93536f7136e4a8e (diff) | |
| download | go-schwift-e3179558f05e9bb2c8c57fe9d0e916cb829df11c.tar.gz | |
bump Go to 1.26, replace errext.As with errors.AsType
Diffstat (limited to 'bulk.go')
| -rw-r--r-- | bulk.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |
