mirror of
https://github.com/pgsty/minio.git
synced 2026-08-11 00:33:28 +03:00
vet: Fix all the go vet complaints (#4029)
``` go tool vet -atomic -bool -copylocks -nilfunc \ -printf -shadow -rangeloops -unreachable \ -unsafeptr -unusedresult cmd/ ```
This commit is contained in:
@@ -60,8 +60,8 @@ func (a AzureObjects) AnonGetBucketInfo(bucket string) (bucketInfo BucketInfo, e
|
||||
// AnonGetObject - SendGET request without authentication.
|
||||
// This is needed when clients send GET requests on objects that can be downloaded without auth.
|
||||
func (a AzureObjects) AnonGetObject(bucket, object string, startOffset int64, length int64, writer io.Writer) (err error) {
|
||||
url := a.client.GetBlobURL(bucket, object)
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
u := a.client.GetBlobURL(bucket, object)
|
||||
req, err := http.NewRequest("GET", u, nil)
|
||||
if err != nil {
|
||||
return azureToObjectError(traceError(err), bucket, object)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user