The Free Software Media System - Server Backend & API
Convert method group to lambda in DeviceManager
Patrick Barron3884837513bd
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.csindex 638ed24a23..484a53428c 100644--- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs+++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs@@ -157,7 +157,7 @@ namespace Jellyfin.Server.Implementations.Devicesreturn 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.Devicessessions = 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);}