فهرست منبع

Explicitly declare type of devices

Signed-off-by: gnattu <gnattuoc@me.com>
gnattu 1 سال پیش
والد
کامیت
8a8b2c4380
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      Jellyfin.Server.Implementations/Devices/DeviceManager.cs

+ 2 - 3
Jellyfin.Server.Implementations/Devices/DeviceManager.cs

@@ -172,10 +172,9 @@ namespace Jellyfin.Server.Implementations.Devices
         /// <inheritdoc />
         public QueryResult<DeviceInfo> GetDevicesForUser(Guid? userId)
         {
-            var devices = _devices.Values
+            IEnumerable<Device> devices = _devices.Values
                 .OrderByDescending(d => d.DateLastActivity)
-                .ThenBy(d => d.DeviceId)
-                .AsEnumerable();
+                .ThenBy(d => d.DeviceId);
 
             if (!userId.IsNullOrEmpty())
             {