mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Avoid usage of finally
in potentially hot path
This commit is contained in:
@ -34,14 +34,10 @@ namespace osu.Game.IO
|
||||
/// </summary>
|
||||
public string? ReadLine()
|
||||
{
|
||||
try
|
||||
{
|
||||
return peekedLine ?? streamReader.ReadLine();
|
||||
}
|
||||
finally
|
||||
{
|
||||
peekedLine = null;
|
||||
}
|
||||
string? line = peekedLine ?? streamReader.ReadLine();
|
||||
|
||||
peekedLine = null;
|
||||
return line;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user