fix format

This commit is contained in:
Chris Lu 2021-08-23 00:49:59 -07:00
parent ff7dc3b44c
commit 95e2b83ca5

View File

@ -179,7 +179,7 @@ func (gcs *gcsRemoteStorageClient) UpdateFileMetadata(loc *filer_pb.RemoteStorag
func (gcs *gcsRemoteStorageClient) DeleteFile(loc *filer_pb.RemoteStorageLocation) (err error) {
key := loc.Path[1:]
if err = gcs.client.Bucket(loc.Bucket).Object(key).Delete(context.Background()); err != nil {
return fmt.Errorf("gcs delete %gcs%gcs: %v", loc.Bucket, key, err)
return fmt.Errorf("gcs delete %s%s: %v", loc.Bucket, key, err)
}
return
}