Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit 76de6f7

Browse files
committed
fixes
1 parent 72902cf commit 76de6f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Softeq.XToolkit.HttpClient/Network/HttpRequestScheduler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ private async Task PerformTaskExecutionWorkerIterationAsync(int workerIndex, Can
273273
await Executor.ExecuteSilentlyAsync(
274274
async () =>
275275
{
276-
if (task is CompleteHttpRequestScheduledTask)
276+
if (task is CompleteHttpRequestScheduledTask scheduledTask)
277277
{
278-
await ExecuteAsync(task as CompleteHttpRequestScheduledTask).ConfigureAwait(false);
278+
await ExecuteAsync(scheduledTask).ConfigureAwait(false);
279279
}
280280
else
281281
{
@@ -389,7 +389,7 @@ private async Task<byte[]> GetBinaryContent(HttpContent httpContent)
389389
{
390390
await httpContent.ReadAsStreamAsync().ConfigureAwait(false);
391391

392-
return await httpContent?.ReadAsByteArrayAsync().ConfigureAwait(false);
392+
return await httpContent.ReadAsByteArrayAsync().ConfigureAwait(false);
393393
}
394394

395395
private async Task<string> GetStringContent(HttpContent httpContent)

0 commit comments

Comments
 (0)