Skip to content

Commit

Permalink
fix mergeLrc bugs when the input lyrics is empty #170
Browse files Browse the repository at this point in the history
  • Loading branch information
jitwxs committed May 14, 2023
1 parent 1324591 commit 7a9f5b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MusicLyricApp/Utils/LyricUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ private static List<LyricLineVo> SortLrc(List<LyricLineVo> listA, List<LyricLine
private static List<LyricLineVo> MergeLrc(List<LyricLineVo> listA, List<LyricLineVo> listB, string splitStr, bool aFirst)
{
var c = SortLrc(listA, listB, aFirst);

if (c.Count == 0)
{
return c;
}

var list = new List<LyricLineVo>
{
Expand Down

0 comments on commit 7a9f5b0

Please sign in to comment.