Skip to content

Commit

Permalink
fixes lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ersan Bozduman committed Jan 25, 2024
1 parent b76231b commit 493cb49
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Minio/DataModel/Args/GetObjectArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,8 @@ public GetObjectArgs WithCallbackStream(Action<Stream> cb)
var taskCompletionSource = new TaskCompletionSource<bool>();

if (cancellationToken.IsCancellationRequested)
{
taskCompletionSource.SetCanceled();
}
else
{
try
{
cb(stream);
Expand All @@ -104,7 +101,6 @@ public GetObjectArgs WithCallbackStream(Action<Stream> cb)
{
taskCompletionSource.SetException(ex);
}
}

return taskCompletionSource.Task;
};
Expand Down

0 comments on commit 493cb49

Please sign in to comment.