mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Invert 'if' statement to reduce nesting.
This commit is contained in:
@@ -453,17 +453,16 @@ namespace DiscImageChef.DiscImages
|
||||
string _line = cueStream.ReadLine();
|
||||
|
||||
matchTrack = regexTrack.Match(_line);
|
||||
if(matchTrack.Success)
|
||||
{
|
||||
uint trackSeq = uint.Parse(matchTrack.Groups[1].Value);
|
||||
if(trackCount + 1 != trackSeq)
|
||||
throw new
|
||||
FeatureUnsupportedImageException(string
|
||||
.Format("Found TRACK {0} out of order in line {1}",
|
||||
trackSeq, line));
|
||||
if(!matchTrack.Success) continue;
|
||||
|
||||
trackCount++;
|
||||
}
|
||||
uint trackSeq = uint.Parse(matchTrack.Groups[1].Value);
|
||||
if(trackCount + 1 != trackSeq)
|
||||
throw new
|
||||
FeatureUnsupportedImageException(string
|
||||
.Format("Found TRACK {0} out of order in line {1}",
|
||||
trackSeq, line));
|
||||
|
||||
trackCount++;
|
||||
}
|
||||
|
||||
if(trackCount == 0) throw new FeatureUnsupportedImageException("No tracks found");
|
||||
|
||||
Reference in New Issue
Block a user