mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Redo Reformat and cleanup.
Rider EAP was having a bug interpreting .editorconfig that didn't generate the code style as we wanted. This is now done with Rider-stable.
This commit is contained in:
@@ -375,16 +375,14 @@ public sealed partial class CdrWin
|
||||
return false;
|
||||
}
|
||||
|
||||
if(tracks == null ||
|
||||
tracks.Count == 0)
|
||||
if(tracks == null || tracks.Count == 0)
|
||||
{
|
||||
ErrorMessage = Localization.Invalid_tracks_sent;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if(_writingTracks != null &&
|
||||
_writingStreams != null)
|
||||
if(_writingTracks != null && _writingStreams != null)
|
||||
{
|
||||
foreach(FileStream oldTrack in _writingStreams.Select(t => t.Value).Distinct())
|
||||
oldTrack.Close();
|
||||
@@ -453,7 +451,10 @@ public sealed partial class CdrWin
|
||||
|
||||
if(!string.IsNullOrWhiteSpace(_discImage.Comment))
|
||||
{
|
||||
string[] commentLines = _discImage.Comment.Split(new[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
string[] commentLines = _discImage.Comment.Split(new[]
|
||||
{
|
||||
'\n'
|
||||
}, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
foreach(string line in commentLines)
|
||||
_descriptorStream.WriteLine("REM {0}", line);
|
||||
@@ -540,8 +541,7 @@ public sealed partial class CdrWin
|
||||
{
|
||||
if(_trackFlags.TryGetValue((byte)track.Sequence, out byte flagsByte))
|
||||
{
|
||||
if(flagsByte != 0 &&
|
||||
flagsByte != (byte)CdFlags.DataTrack)
|
||||
if(flagsByte != 0 && flagsByte != (byte)CdFlags.DataTrack)
|
||||
{
|
||||
var flags = (CdFlags)flagsByte;
|
||||
|
||||
@@ -552,8 +552,7 @@ public sealed partial class CdrWin
|
||||
}
|
||||
}
|
||||
|
||||
if(_trackIsrcs.TryGetValue((byte)track.Sequence, out string isrc) &&
|
||||
!string.IsNullOrWhiteSpace(isrc))
|
||||
if(_trackIsrcs.TryGetValue((byte)track.Sequence, out string isrc) && !string.IsNullOrWhiteSpace(isrc))
|
||||
_descriptorStream.WriteLine(" ISRC {0}", isrc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user