1
0
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:
smoogipoo 2017-10-10 19:21:38 +09:00
parent 29c2a29798
commit ad344eb719

View File

@ -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("//"))