Skip to content

Commit ecea300

Browse files
author
Ersan Bozduman
committed
fixes lint changes
1 parent 8545a76 commit ecea300

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Minio/DataModel/Args/GetObjectArgs.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,8 @@ public GetObjectArgs WithCallbackStream(Action<Stream> cb)
9090
var taskCompletionSource = new TaskCompletionSource<bool>();
9191

9292
if (cancellationToken.IsCancellationRequested)
93-
{
9493
taskCompletionSource.SetCanceled();
95-
}
9694
else
97-
{
9895
try
9996
{
10097
cb(stream);
@@ -104,7 +101,6 @@ public GetObjectArgs WithCallbackStream(Action<Stream> cb)
104101
{
105102
taskCompletionSource.SetException(ex);
106103
}
107-
}
108104

109105
return taskCompletionSource.Task;
110106
};

0 commit comments

Comments
 (0)