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:
2023-10-04 17:34:40 +01:00
parent bc8bf7a2dc
commit 7363a5d9c5
453 changed files with 7241 additions and 7126 deletions

View File

@@ -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);
}