Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Oct 12, 2024
1 parent 7685372 commit 618846d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions JL.Core/Dicts/JMnedict/JmnedictRecordBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void AddToDictionary(JmnedictEntry entry, IDictionary<string, ILis

definitionList.Add(translation.TransDetList.ToArray());
nameTypeList.Add(translation.NameTypeList.ToArray());
//relatedTermList.Add(translation.XRefList > 0 ? translation.XRefList.ToArray() : null);
//relatedTermList.Add(translation.XRefList.TrimListToArray());
}

JmnedictRecord record = new(entry.Id, entry.KebList[i], entry.KebList.RemoveAtToArray(i), entry.RebList.TrimListToArray(), definitionList.ToArray(), nameTypeList.ToArray());
Expand Down Expand Up @@ -63,7 +63,7 @@ public static void AddToDictionary(JmnedictEntry entry, IDictionary<string, ILis

definitionList.Add(translation.TransDetList.ToArray());
nameTypeList.Add(translation.NameTypeList.ToArray());
// relatedTermList.Add(translation.XRefList > 0 ? translation.XRefList.ToArray() : null);
// relatedTermList.Add(translation.XRefList.TrimListToArray());
}

JmnedictRecord record = new(entry.Id, entry.RebList[i], entry.RebList.RemoveAtToArray(i), null, definitionList.ToArray(), nameTypeList.ToArray());
Expand Down
2 changes: 1 addition & 1 deletion JL.Core/Dicts/KanjiDict/YomichanKanjiRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public YomichanKanjiRecord(List<JsonElement> jsonElement)
statList.Add(string.Create(CultureInfo.InvariantCulture, $"{stat.Name}: {stat.Value}"));
}

Stats = statList.Count > 0 ? statList.ToArray() : null;
Stats = statList.TrimListToArray();
}

public string? BuildFormattedDefinition(DictOptions options)
Expand Down

0 comments on commit 618846d

Please sign in to comment.