Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Jan 7, 2025
1 parent 129ba71 commit 4064999
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion JL.Core/Dicts/CustomWordDict/CustomWordRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public int GetFrequency(IDictionary<string, IList<FrequencyRecord>> freqDict)
return frequency;
}

public int GetFrequencyFromDB(Dictionary<string, List<FrequencyRecord>> freqDict)
public int GetFrequency(Dictionary<string, List<FrequencyRecord>> freqDict)
{
bool readingsExist = Readings is not null;
int frequency = int.MaxValue;
Expand Down
2 changes: 1 addition & 1 deletion JL.Core/Dicts/EPWING/Nazeka/EpwingNazekaRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public int GetFrequency(IDictionary<string, IList<FrequencyRecord>> freqDict)
return frequency;
}

public int GetFrequencyFromDB(Dictionary<string, List<FrequencyRecord>> freqDict)
public int GetFrequency(Dictionary<string, List<FrequencyRecord>> freqDict)
{
int frequency = int.MaxValue;
if (freqDict.TryGetValue(JapaneseUtils.KatakanaToHiragana(PrimarySpelling), out List<FrequencyRecord>? freqResults))
Expand Down
2 changes: 1 addition & 1 deletion JL.Core/Dicts/EPWING/Yomichan/EpwingYomichanRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public int GetFrequency(IDictionary<string, IList<FrequencyRecord>> freqDict)
return frequency;
}

public int GetFrequencyFromDB(Dictionary<string, List<FrequencyRecord>> freqDict)
public int GetFrequency(Dictionary<string, List<FrequencyRecord>> freqDict)
{
bool readingExists = Reading is not null;
int frequency = int.MaxValue;
Expand Down
2 changes: 1 addition & 1 deletion JL.Core/Dicts/IGetFrequency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ internal interface IGetFrequency
{
public int GetFrequency(IDictionary<string, IList<FrequencyRecord>> freqDict);

public int GetFrequencyFromDB(Dictionary<string, List<FrequencyRecord>> freqDict);
public int GetFrequency(Dictionary<string, List<FrequencyRecord>> freqDict);
}
2 changes: 1 addition & 1 deletion JL.Core/Dicts/JMdict/JmdictRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public int GetFrequency(IDictionary<string, IList<FrequencyRecord>> freqDict)
return frequency;
}

public int GetFrequencyFromDB(Dictionary<string, List<FrequencyRecord>> freqDict)
public int GetFrequency(Dictionary<string, List<FrequencyRecord>> freqDict)
{
bool readingsExist = Readings is not null;
int frequency = int.MaxValue;
Expand Down
2 changes: 1 addition & 1 deletion JL.Core/Lookup/LookupUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ private static List<LookupResult> BuildCustomNameResult(
{
if (freqDictsForDBExist && freqDictsFromDB!.TryGetValue(freq.Name, out Dictionary<string, List<FrequencyRecord>>? freqDict))
{
freqsList.Add(new LookupFrequencyResult(freq.Name, record.GetFrequencyFromDB(freqDict), freq.Options.HigherValueMeansHigherFrequency.Value));
freqsList.Add(new LookupFrequencyResult(freq.Name, record.GetFrequency(freqDict), freq.Options.HigherValueMeansHigherFrequency.Value));
}
}

Expand Down

0 comments on commit 4064999

Please sign in to comment.