Преглед изворни кода

Update Jellyfin.Server.Implementations/Devices/DeviceManager.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
Patrick Barron пре 3 година
родитељ
комит
cb52ccc699
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Jellyfin.Server.Implementations/Devices/DeviceManager.cs

+ 1 - 1
Jellyfin.Server.Implementations/Devices/DeviceManager.cs

@@ -206,7 +206,7 @@ namespace Jellyfin.Server.Implementations.Devices
         {
             if (user == null)
             {
-                throw new ArgumentException("user not found");
+                throw new ArgumentNullException(nameof(user));
             }
 
             if (string.IsNullOrEmpty(deviceId))