More pattern matching.

This commit is contained in:
2022-11-14 01:49:09 +00:00
parent e6db6032f3
commit a02220902c
8 changed files with 11 additions and 22 deletions

View File

@@ -93,8 +93,7 @@ public static class CDTextOnLeadIn
public static CDText? Decode(byte[] CDTextResponse)
{
if(CDTextResponse == null ||
CDTextResponse.Length <= 4)
if(CDTextResponse is not { Length: > 4 })
return null;
var decoded = new CDText