mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Invert 'if' statements to reduce nesting.
This commit is contained in:
@@ -563,11 +563,11 @@ public sealed partial class Alcohol120
|
||||
|
||||
extraCount += _writingTracks.Count(t => t.Session == i);
|
||||
|
||||
if(i < sessions)
|
||||
{
|
||||
currentExtraOffset += Marshal.SizeOf<Track>() * 2;
|
||||
extraCount += 2;
|
||||
}
|
||||
if(i >= sessions)
|
||||
continue;
|
||||
|
||||
currentExtraOffset += Marshal.SizeOf<Track>() * 2;
|
||||
extraCount += 2;
|
||||
}
|
||||
|
||||
long footerOffset = currentExtraOffset + Marshal.SizeOf<TrackExtra>() * extraCount;
|
||||
|
||||
Reference in New Issue
Block a user