소스 검색

Convert method group to lambda in DeviceManager

Patrick Barron 4 년 전
부모
커밋
3884837513
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Jellyfin.Server.Implementations/Devices/DeviceManager.cs

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

@@ -157,7 +157,7 @@ namespace Jellyfin.Server.Implementations.Devices
 
             return new QueryResult<DeviceInfo>
             {
-                Items = devices.Items.Select(ToDeviceInfo).ToList(),
+                Items = devices.Items.Select(device => ToDeviceInfo(device)).ToList(),
                 StartIndex = devices.StartIndex,
                 TotalRecordCount = devices.TotalRecordCount
             };
@@ -185,7 +185,7 @@ namespace Jellyfin.Server.Implementations.Devices
                 sessions = sessions.Where(i => CanAccessDevice(user, i.DeviceId));
             }
 
-            var array = await sessions.Select(ToDeviceInfo).ToArrayAsync().ConfigureAwait(false);
+            var array = await sessions.Select(device => ToDeviceInfo(device)).ToArrayAsync().ConfigureAwait(false);
 
             return new QueryResult<DeviceInfo>(array);
         }