Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Oct 14, 2023
1 parent b2a2d1e commit 4f716ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions JL.Core/Dicts/EPWING/EpwingUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ internal static class EpwingUtils

public static bool IsValidEpwingResultForDictType(IEpwingRecord epwingRecord, Dict dict)
{
if (epwingRecord.Definitions.Length is 0)
{
return false;
}

foreach (char c in epwingRecord.PrimarySpelling)
{
if (s_invalidCharacters.Contains(c) || char.IsWhiteSpace(c))
Expand Down
3 changes: 2 additions & 1 deletion JL.Core/Dicts/EPWING/EpwingYomichan/EpwingYomichanLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public static async Task Load(Dict dict)

private static void AddToDictionary(IEpwingRecord yomichanRecord, Dict dict)
{
if (!EpwingUtils.IsValidEpwingResultForDictType(yomichanRecord, dict))
if (yomichanRecord.Definitions.Length is 0
|| !EpwingUtils.IsValidEpwingResultForDictType(yomichanRecord, dict))
{
return;
}
Expand Down
1 change: 0 additions & 1 deletion JL.Windows/DictOptionManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Globalization;
using System.Windows.Media;
using JL.Core.Dicts;
using JL.Windows.Utilities;
Expand Down

0 comments on commit 4f716ff

Please sign in to comment.