Skip to content

Commit

Permalink
Fix the error tha occurs while loading a new frequency dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Oct 7, 2023
1 parent 73a0a98 commit 9689936
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions JL.Core/Freqs/FrequencyYomichan/FrequencyYomichanLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ public static async Task Load(Freq freq)
}
}
}
}

foreach ((string key, IList<FrequencyRecord> recordList) in freq.Contents)
{
freq.Contents[key] = recordList.ToArray();
}

freqDict.TrimExcess();
foreach ((string key, IList<FrequencyRecord> recordList) in freq.Contents)
{
freq.Contents[key] = recordList.ToArray();
}

freqDict.TrimExcess();
}
}

0 comments on commit 9689936

Please sign in to comment.