mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Simplify IDictionary accesses.
This commit is contained in:
@@ -638,12 +638,9 @@ public static class FullTOC
|
||||
toc.LastCompleteSession = (byte)track.Session;
|
||||
}
|
||||
|
||||
if(!sessionEndingTrack.ContainsKey(toc.LastCompleteSession))
|
||||
{
|
||||
sessionEndingTrack[toc.LastCompleteSession] = (byte)tracks.
|
||||
Where(t => t.Session == toc.LastCompleteSession).
|
||||
Max(t => t.Sequence);
|
||||
}
|
||||
sessionEndingTrack.TryAdd(toc.LastCompleteSession, (byte)tracks.
|
||||
Where(t => t.Session == toc.LastCompleteSession).
|
||||
Max(t => t.Sequence));
|
||||
|
||||
byte currentSession = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user