瀏覽代碼

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)
             if (user == null)
             {
             {
-                throw new ArgumentException("user not found");
+                throw new ArgumentNullException(nameof(user));
             }
             }
 
 
             if (string.IsNullOrEmpty(deviceId))
             if (string.IsNullOrEmpty(deviceId))