Merge null/pattern checks into complex pattern.

This commit is contained in:
2022-11-13 20:46:24 +00:00
parent c68760ec49
commit a8a74f385a
39 changed files with 75 additions and 133 deletions

View File

@@ -99,8 +99,7 @@ public sealed class CompactDiscInfoViewModel : ViewModelBase
if(!string.IsNullOrEmpty(mcn))
McnText = mcn;
if(isrcs != null &&
isrcs.Count > 0)
if(isrcs is { Count: > 0 })
foreach(KeyValuePair<byte, string> isrc in isrcs)
IsrcList.Add(new IsrcModel
{