mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 10:43:30 +01:00
Replace == null with is null
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Jellyfin.Server.Implementations.Devices
|
||||
await using (dbContext.ConfigureAwait(false))
|
||||
{
|
||||
deviceOptions = await dbContext.DeviceOptions.AsQueryable().FirstOrDefaultAsync(dev => dev.DeviceId == deviceId).ConfigureAwait(false);
|
||||
if (deviceOptions == null)
|
||||
if (deviceOptions is null)
|
||||
{
|
||||
deviceOptions = new DeviceOptions(deviceId);
|
||||
dbContext.DeviceOptions.Add(deviceOptions);
|
||||
@@ -121,7 +121,7 @@ namespace Jellyfin.Server.Implementations.Devices
|
||||
.ConfigureAwait(false);
|
||||
}
|
||||
|
||||
var deviceInfo = device == null ? null : ToDeviceInfo(device);
|
||||
var deviceInfo = device is null ? null : ToDeviceInfo(device);
|
||||
|
||||
return deviceInfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user