aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2024-09-18 07:21:43 -0600
committerGitHub <noreply@github.com>2024-09-18 07:21:43 -0600
commit8c8972f0b50d6e1db2341073681f29bb3b8a5ff5 (patch)
tree5ac709956c5991ad139ae5d85d971fc5bbe7adc9 /Jellyfin.Server.Implementations
parent0f9a8d8ee113d2e7aaae8a0687938fba9245229b (diff)
parent5a5da33f44b933215c95947c479ded1cdbadbcd9 (diff)
Merge pull request #9374 from Shadowghost/fixup2
Diffstat (limited to 'Jellyfin.Server.Implementations')
-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 d7a46e2d54..415c04bbf1 100644
--- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
+++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
@@ -135,8 +135,8 @@ namespace Jellyfin.Server.Implementations.Devices
{
IEnumerable<Device> devices = _devices.Values
.Where(device => !query.UserId.HasValue || device.UserId.Equals(query.UserId.Value))
- .Where(device => query.DeviceId == null || device.DeviceId == query.DeviceId)
- .Where(device => query.AccessToken == null || device.AccessToken == query.AccessToken)
+ .Where(device => query.DeviceId is null || device.DeviceId == query.DeviceId)
+ .Where(device => query.AccessToken is null || device.AccessToken == query.AccessToken)
.OrderBy(d => d.Id)
.ToList();
var count = devices.Count();