mirror of https://github.com/ppy/osu
Resolve CA1835 inspection
"Change the `ReadAsync` method call to use the `Stream.ReadAsync(Memory<byte>, CancellationToken)` overload"
This commit is contained in:
parent
ca5de22ca5
commit
89bf7b1bd6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue