From e3179558f05e9bb2c8c57fe9d0e916cb829df11c Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 21 Jul 2026 14:28:15 +0200 Subject: bump Go to 1.26, replace errext.As with errors.AsType --- bulk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bulk.go') 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, -- cgit v1.3.1