[CodeFactor] Apply fixes (#6005)

Co-authored-by: codefactor-io <support@codefactor.io>
This commit is contained in:
DecorativeFamily
2024-11-07 10:16:27 +03:30
committed by GitHub
parent 45febe3fff
commit c4b490e46d
12 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
using System.Net.Http.Headers;
using System.Net.Http.Headers;
using System.Net.Mime;
using System.Text;
@@ -98,7 +98,7 @@ namespace ServiceLib.Common
totalRead += read;
if (read == 0) break;
await file.WriteAsync(buffer, 0, read, token);
await file.WriteAsync(buffer.AsMemory(0, read), token);
if (canReportProgress)
{