core: bump C# language version (#15469)

This commit is contained in:
Bogdan
2024-07-07 22:27:26 +03:00
committed by GitHub
parent 31f7ce4a3b
commit edf84f4a4f
18 changed files with 31 additions and 32 deletions

View File

@@ -192,7 +192,7 @@ namespace Jackett.Common.Utils.Clients
var body = "";
var bodySize = 0;
var isBinary = false;
if (result.ContentBytes != null && result.ContentBytes.Length > 0)
if (result.ContentBytes is { Length: > 0 })
{
bodySize = result.ContentBytes.Length;
var contentString = result.ContentString.Trim();