From 493cb49bf35d0a9f88a4b029be7544af189e243a Mon Sep 17 00:00:00 2001 From: Ersan Bozduman Date: Wed, 24 Jan 2024 19:15:46 -0800 Subject: [PATCH] fixes lint changes --- Minio/DataModel/Args/GetObjectArgs.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Minio/DataModel/Args/GetObjectArgs.cs b/Minio/DataModel/Args/GetObjectArgs.cs index 50541928e..74cbda62a 100644 --- a/Minio/DataModel/Args/GetObjectArgs.cs +++ b/Minio/DataModel/Args/GetObjectArgs.cs @@ -90,11 +90,8 @@ public GetObjectArgs WithCallbackStream(Action cb) var taskCompletionSource = new TaskCompletionSource(); if (cancellationToken.IsCancellationRequested) - { taskCompletionSource.SetCanceled(); - } else - { try { cb(stream); @@ -104,7 +101,6 @@ public GetObjectArgs WithCallbackStream(Action cb) { taskCompletionSource.SetException(ex); } - } return taskCompletionSource.Task; };