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); }