From 51faca4e1f7dafc626145addcafe369bf559506d Mon Sep 17 00:00:00 2001 From: Nathan Brown Date: Thu, 30 Apr 2020 19:54:51 -0700 Subject: [PATCH] Remove extra stat object calls. (#405) --- Minio/ApiEndpoints/ObjectOperations.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Minio/ApiEndpoints/ObjectOperations.cs b/Minio/ApiEndpoints/ObjectOperations.cs index 4f79d8ed..d9827ee8 100644 --- a/Minio/ApiEndpoints/ObjectOperations.cs +++ b/Minio/ApiEndpoints/ObjectOperations.cs @@ -47,8 +47,6 @@ namespace Minio /// Optional cancellation token to cancel the operation public async Task GetObjectAsync(string bucketName, string objectName, Action cb, ServerSideEncryption sse = null, CancellationToken cancellationToken = default(CancellationToken)) { - await StatObjectAsync(bucketName, objectName, sse: sse, cancellationToken: cancellationToken).ConfigureAwait(false); - var headers = new Dictionary(); if (sse != null && sse.GetType().Equals(EncryptionType.SSE_C)) { @@ -86,8 +84,6 @@ namespace Minio throw new ArgumentException("Length should be greater than zero", nameof(length)); } - await StatObjectAsync(bucketName, objectName, cancellationToken: cancellationToken).ConfigureAwait(false); - var headerMap = new Dictionary(); if (length > 0) {