mirror of
https://github.com/ppy/osu
synced 2025-02-17 02:47:19 +00:00
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 @@ namespace osu.Game.IO.Archives
|
||||
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
Block a user