Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Jan 3, 2025
1 parent fecdb87 commit 7461523
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions JL.Core/Lookup/LookupUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,9 @@ private static ConcurrentBag<LookupResult> BuildCustomNameResult(
}
}

return freqsList;
return freqsList.Count > 0
? freqsList
: null;
}

private static List<LookupFrequencyResult>? GetKanjiFrequencies(string kanji, List<Freq> kanjiFreqs)
Expand Down Expand Up @@ -1472,7 +1474,9 @@ private static ConcurrentBag<LookupResult> BuildCustomNameResult(
}
}

return freqsList;
return freqsList.Count > 0
? freqsList
: null;
}

private static List<LookupFrequencyResult>? GetKanjidicFrequencies(string kanji, int frequency, List<Freq>? kanjiFreqs)
Expand Down

0 comments on commit 7461523

Please sign in to comment.