fix finding an entry for collating
This commit is contained in:
parent
dd4cc8ba5f
commit
c8e985cb39
@ -145,12 +145,14 @@ namespace NonaBGS.BGS {
|
|||||||
|
|
||||||
LogEntry existing = null;
|
LogEntry existing = null;
|
||||||
|
|
||||||
try {
|
existing = objective.LogEntries.Find(x => {
|
||||||
existing = objective.LogEntries.Find(x => x.CompareTo(entry) == 0);
|
try {
|
||||||
} catch (NotImplementedException) {
|
return x.CompareTo(entry) == 0;
|
||||||
// Equivalent to not having found anything
|
} catch (NotImplementedException) {
|
||||||
existing = null;
|
return false;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
if (collate && existing != null) {
|
if (collate && existing != null) {
|
||||||
existing.Entries.Add(e);
|
existing.Entries.Add(e);
|
||||||
} else if (!collate || existing == null) {
|
} else if (!collate || existing == null) {
|
||||||
|
Reference in New Issue
Block a user