mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
run gofumpt cleanup across code-base (#14015)
This commit is contained in:
@@ -51,7 +51,7 @@ func (gcs *warmBackendGCS) getDest(object string) string {
|
||||
|
||||
func (gcs *warmBackendGCS) Put(ctx context.Context, key string, data io.Reader, length int64) (remoteVersionID, error) {
|
||||
object := gcs.client.Bucket(gcs.Bucket).Object(gcs.getDest(key))
|
||||
//TODO: set storage class
|
||||
// TODO: set storage class
|
||||
w := object.NewWriter(ctx)
|
||||
if gcs.StorageClass != "" {
|
||||
w.ObjectAttrs.StorageClass = gcs.StorageClass
|
||||
@@ -74,7 +74,6 @@ func (gcs *warmBackendGCS) Get(ctx context.Context, key string, rv remoteVersion
|
||||
r, err = object.NewRangeReader(ctx, opts.startOffset, opts.length)
|
||||
if err != nil {
|
||||
return nil, gcsToObjectError(err, gcs.Bucket, key)
|
||||
|
||||
}
|
||||
return r, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user