From 6f2956376fa67c4fd3abbed65d1ec20bea2b9e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 24 Oct 2023 11:17:14 +0200 Subject: Fix remaining lints --- bulk.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bulk.go') 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, -- cgit v1.2.3