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

@@ -57,8 +57,7 @@ public static class ATIP
{
public static CDATIP Decode(byte[] CDATIPResponse)
{
if(CDATIPResponse == null ||
CDATIPResponse.Length <= 4)
if(CDATIPResponse is not { Length: > 4 })
return null;
var decoded = new CDATIP();