aboutsummaryrefslogtreecommitdiff
path: root/bulk.go
diff options
context:
space:
mode:
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 1c4dd4a..431fa76 100644
--- a/bulk.go
+++ b/bulk.go
@@ -88,7 +88,7 @@ func (a *Account) BulkUpload(uploadPath string, format BulkUploadFormat, content
req.ObjectName = fields[1]
}
- resp, err := req.Do(a.backend)
+ resp, err := req.Do(a.backend) //nolint:bodyclose // parseBulkResponse does the close
if err != nil {
return 0, err
}
@@ -265,7 +265,7 @@ func (a *Account) bulkDelete(names []string, opts *RequestOptions) (numDeleted,
req.Options.Headers.Set("Accept", "application/json")
req.Options.Headers.Set("Content-Type", "text/plain")
req.Options.Values.Set("bulk-delete", "true")
- resp, err := req.Do(a.backend)
+ resp, err := req.Do(a.backend) //nolint:bodyclose // parseBulkResponse does the close
if err != nil {
return 0, 0, err
}