From ad344eb719242da7cff0bbdbf7c7d667bd9e32a9 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Tue, 10 Oct 2017 19:21:38 +0900 Subject: [PATCH] Use IsNullOrWhiteSpace instead of trimming --- osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs b/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs index a70faf5be6..2cf080746f 100644 --- a/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs +++ b/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs @@ -613,7 +613,7 @@ namespace osu.Game.Beatmaps.Formats string line; while ((line = stream.ReadLine()) != null) { - if (string.IsNullOrEmpty(line.Trim())) + if (string.IsNullOrWhiteSpace(line)) continue; if (line.StartsWith("//"))