aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-06-21 19:01:34 -0400
committerPatrick Barron <barronpm@gmail.com>2021-06-21 19:01:34 -0400
commit3884837513bd4b658942c2a73186e869fbf1eee3 (patch)
tree2c96610db8cc920f923fc4ef35cd62860620de98
parent784f29f75387d4a98b20103a59d94dc1994516d1 (diff)
Convert method group to lambda in DeviceManager
-rw-r--r--Jellyfin.Server.Implementations/Devices/DeviceManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
index 638ed24a2..484a53428 100644
--- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
+++ b/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);
}