From 4c2240df8a66060ae09d3c30724f7f7625a960d8 Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Sat, 26 Oct 2024 12:12:45 -0600 Subject: [PATCH] Fix 10.10 nullability (#186) --- Jellyfin.Plugin.Tvdb/ProviderIdsExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Tvdb/ProviderIdsExtensions.cs b/Jellyfin.Plugin.Tvdb/ProviderIdsExtensions.cs index d1d0087..850bc72 100644 --- a/Jellyfin.Plugin.Tvdb/ProviderIdsExtensions.cs +++ b/Jellyfin.Plugin.Tvdb/ProviderIdsExtensions.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using MediaBrowser.Model.Entities; @@ -117,6 +118,6 @@ public static bool HasProviderId(this IHasProviderIds? item, string name, out st return result; } - private static bool HasValue(string? value) + private static bool HasValue([NotNullWhen(true)] string? value) => !string.IsNullOrWhiteSpace(value); }