Resolve CA1835 inspection

"Change the `ReadAsync` method call to use the
`Stream.ReadAsync(Memory<byte>, CancellationToken)` overload"
This commit is contained in:
Bartłomiej Dach 2020-11-01 18:51:39 +01:00
parent ca5de22ca5
commit 89bf7b1bd6
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public async Task<byte[]> GetAsync(string name)
return null;
byte[] buffer = new byte[input.Length];
await input.ReadAsync(buffer, 0, buffer.Length);
await input.ReadAsync(buffer);
return buffer;
}
}