mirror of
https://github.com/aaru-dps/Aaru.Decoders.git
synced 2025-12-16 19:24:32 +00:00
More pattern matching.
This commit is contained in:
@@ -55,8 +55,7 @@ public static class Session
|
||||
{
|
||||
public static CDSessionInfo? Decode(byte[] CDSessionInfoResponse)
|
||||
{
|
||||
if(CDSessionInfoResponse == null ||
|
||||
CDSessionInfoResponse.Length <= 4)
|
||||
if(CDSessionInfoResponse is not { Length: > 4 })
|
||||
return null;
|
||||
|
||||
var decoded = new CDSessionInfo
|
||||
|
||||
Reference in New Issue
Block a user