GetDeviceOptions always returns an instance of DeviceOptions

This commit is contained in:
Patrick Barron
2021-06-27 16:42:26 -04:00
parent d3e02e918d
commit bbac9ff67e
3 changed files with 5 additions and 9 deletions

View File

@@ -107,12 +107,6 @@ namespace Jellyfin.Api.Controllers
[FromQuery, Required] string id,
[FromBody, Required] DeviceOptions deviceOptions)
{
var existingDeviceOptions = await _deviceManager.GetDeviceOptions(id).ConfigureAwait(false);
if (existingDeviceOptions == null)
{
return NotFound();
}
await _deviceManager.UpdateDeviceOptions(id, deviceOptions).ConfigureAwait(false);
return NoContent();
}