aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/DevicesController.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-04-23 07:55:47 -0600
committercrobibero <cody@robibe.ro>2020-04-23 07:55:47 -0600
commit4d894c4344fd23026bbfdc0a1cdd24231441a444 (patch)
tree0ef55317bc6a9c94317385067406582aa4b32819 /Jellyfin.Api/Controllers/DevicesController.cs
parent927696c4036960018864864a4acbf0aeb797f7ac (diff)
Remove unneeded Ok calls.
Diffstat (limited to 'Jellyfin.Api/Controllers/DevicesController.cs')
-rw-r--r--Jellyfin.Api/Controllers/DevicesController.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Jellyfin.Api/Controllers/DevicesController.cs b/Jellyfin.Api/Controllers/DevicesController.cs
index 559a26007..cebb51ccf 100644
--- a/Jellyfin.Api/Controllers/DevicesController.cs
+++ b/Jellyfin.Api/Controllers/DevicesController.cs
@@ -74,7 +74,7 @@ namespace Jellyfin.Api.Controllers
return NotFound();
}
- return Ok(deviceInfo);
+ return deviceInfo;
}
/// <summary>
@@ -86,7 +86,7 @@ namespace Jellyfin.Api.Controllers
[Authenticated(Roles = "Admin")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
- public ActionResult<DeviceInfo> GetDeviceOptions([FromQuery, BindRequired] string id)
+ public ActionResult<DeviceOptions> GetDeviceOptions([FromQuery, BindRequired] string id)
{
var deviceInfo = _deviceManager.GetDeviceOptions(id);
if (deviceInfo == null)
@@ -94,7 +94,7 @@ namespace Jellyfin.Api.Controllers
return NotFound();
}
- return Ok(deviceInfo);
+ return deviceInfo;
}
/// <summary>
@@ -150,7 +150,7 @@ namespace Jellyfin.Api.Controllers
public ActionResult<ContentUploadHistory> GetCameraUploads([FromQuery, BindRequired] string id)
{
var uploadHistory = _deviceManager.GetCameraUploadHistory(id);
- return Ok(uploadHistory);
+ return uploadHistory;
}
/// <summary>