From 8a8b2c4380ff5f4b20e13e2e6eb57a0be2bd7fc7 Mon Sep 17 00:00:00 2001 From: gnattu Date: Sun, 2 Jun 2024 22:52:12 +0800 Subject: [PATCH] Explicitly declare type of devices Signed-off-by: gnattu --- Jellyfin.Server.Implementations/Devices/DeviceManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs index e676275632..a04d6dd431 100644 --- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs +++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs @@ -172,10 +172,9 @@ namespace Jellyfin.Server.Implementations.Devices /// public QueryResult GetDevicesForUser(Guid? userId) { - var devices = _devices.Values + IEnumerable devices = _devices.Values .OrderByDescending(d => d.DateLastActivity) - .ThenBy(d => d.DeviceId) - .AsEnumerable(); + .ThenBy(d => d.DeviceId); if (!userId.IsNullOrEmpty()) {