Update to return IEnumerable directly where possible

This commit is contained in:
ZadenRB 2020-04-29 15:53:29 -06:00
parent c61a200c9d
commit 82231b4393
1 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ namespace Jellyfin.Api.Controllers
/// <returns>An <cref see="OkResult"/> containing a list of all notification types.</returns> /// <returns>An <cref see="OkResult"/> containing a list of all notification types.</returns>
[HttpGet("Types")] [HttpGet("Types")]
[ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status200OK)]
public ActionResult<IEnumerable<NotificationTypeInfo>> GetNotificationTypes() public IEnumerable<NotificationTypeInfo> GetNotificationTypes()
{ {
return _notificationManager.GetNotificationTypes(); return _notificationManager.GetNotificationTypes();
} }
@ -87,9 +87,9 @@ namespace Jellyfin.Api.Controllers
/// <returns>An <cref see="OkResult"/> containing a list of all notification services.</returns> /// <returns>An <cref see="OkResult"/> containing a list of all notification services.</returns>
[HttpGet("Services")] [HttpGet("Services")]
[ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status200OK)]
public ActionResult<IEnumerable<NameIdPair>> GetNotificationServices() public IEnumerable<NameIdPair> GetNotificationServices()
{ {
return _notificationManager.GetNotificationServices().ToList(); return _notificationManager.GetNotificationServices();
} }
/// <summary> /// <summary>