From 4268585b7dd69da4c01ddbd52ff9a758104f7b87 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sun, 6 Dec 2020 16:42:00 +0900 Subject: [PATCH] Should remove checking if not have time tag. --- osu.Game.Rulesets.Karaoke/Beatmaps/Formats/LrcEncoder.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/LrcEncoder.cs b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/LrcEncoder.cs index 9ee473c2d..44d7b65e1 100644 --- a/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/LrcEncoder.cs +++ b/osu.Game.Rulesets.Karaoke/Beatmaps/Formats/LrcEncoder.cs @@ -35,9 +35,6 @@ private LyricLine encodeLyric(Objects.Lyric lyric) => private IEnumerable convertTimeTag(string text, IReadOnlyDictionary tags) { - if (tags == null || !tags.Any()) - throw new ArgumentNullException($"{nameof(tags)} cannot be null."); - var totalTags = text.Length * 2 + 2; for (int i = 0; i < totalTags; i++)