aboutsummaryrefslogtreecommitdiff
path: root/bulk.go
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2023-10-24 11:17:14 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2023-10-25 13:31:54 +0200
commit6f2956376fa67c4fd3abbed65d1ec20bea2b9e00 (patch)
tree3ae8d6b34cbed323d0936503ecd579695c762249 /bulk.go
parent1bc6c5a6fcf5bf0f52a960b6df87b6bd04e10956 (diff)
downloadgo-schwift-6f2956376fa67c4fd3abbed65d1ec20bea2b9e00.tar.gz
Fix remaining lints
Diffstat (limited to 'bulk.go')
-rw-r--r--bulk.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/bulk.go b/bulk.go
index 431fa76..d8b96ca 100644
--- a/bulk.go
+++ b/bulk.go
@@ -28,6 +28,7 @@ import (
"strings"
"github.com/majewsky/schwift/capabilities"
+ "github.com/majewsky/schwift/internal/errext"
)
// BulkUploadFormat enumerates possible archive formats for Container.BulkUpload().
@@ -214,7 +215,7 @@ func (a *Account) bulkDeleteSingle(objects []*Object, containers []*Container, o
numNotFound++
return nil
}
- if statusErr, ok := err.(UnexpectedStatusCodeError); ok {
+ if statusErr, ok := errext.As[UnexpectedStatusCodeError](err); ok {
errs = append(errs, BulkObjectError{
ContainerName: containerName,
ObjectName: objectName,