aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Extensions/DtoExtensions.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2024-04-25 12:42:10 +0200
committerBond_009 <bond.009@outlook.com>2024-07-29 21:05:40 +0200
commit2b3ebb0751e752eeb3b1d5baadf3086a09b867d6 (patch)
tree15b4fea855bf9399d850f829d4a6a3c34261aa39 /Jellyfin.Api/Extensions/DtoExtensions.cs
parenteeb8c59ff27307b5edd8e056a9ef7d451dbddd04 (diff)
Enable nullable for DtoService and DtoOptions
Diffstat (limited to 'Jellyfin.Api/Extensions/DtoExtensions.cs')
-rw-r--r--Jellyfin.Api/Extensions/DtoExtensions.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/Jellyfin.Api/Extensions/DtoExtensions.cs b/Jellyfin.Api/Extensions/DtoExtensions.cs
index 3d17dbda1..f52b58bab 100644
--- a/Jellyfin.Api/Extensions/DtoExtensions.cs
+++ b/Jellyfin.Api/Extensions/DtoExtensions.cs
@@ -26,8 +26,6 @@ public static class DtoExtensions
internal static DtoOptions AddClientFields(
this DtoOptions dtoOptions, ClaimsPrincipal user)
{
- dtoOptions.Fields ??= Array.Empty<ItemFields>();
-
string? client = user.GetClient();
// No client in claim