mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
Use IsNullOrWhiteSpace instead of trimming
This commit is contained in:
parent
29c2a29798
commit
ad344eb719
@ -613,7 +613,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
string line;
|
string line;
|
||||||
while ((line = stream.ReadLine()) != null)
|
while ((line = stream.ReadLine()) != null)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(line.Trim()))
|
if (string.IsNullOrWhiteSpace(line))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (line.StartsWith("//"))
|
if (line.StartsWith("//"))
|
||||||
|
Loading…
Reference in New Issue
Block a user