diff options
| author | ZadenRB <zaden.ruggieroboune@gmail.com> | 2020-04-29 15:53:29 -0600 |
|---|---|---|
| committer | ZadenRB <zaden.ruggieroboune@gmail.com> | 2020-04-29 15:53:29 -0600 |
| commit | 82231b4393bb367f7fca50fed21f00e469b9f960 (patch) | |
| tree | 3e841c842d725caa2d5d0efc92f8638dbb363313 /Jellyfin.Api/Controllers/NotificationsController.cs | |
| parent | c61a200c9de2714b3d6353f3a4ae52b8962d369a (diff) | |
Update to return IEnumerable directly where possible
Diffstat (limited to 'Jellyfin.Api/Controllers/NotificationsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/NotificationsController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/NotificationsController.cs b/Jellyfin.Api/Controllers/NotificationsController.cs index 8feea9ab6..3cbb3a3a3 100644 --- a/Jellyfin.Api/Controllers/NotificationsController.cs +++ b/Jellyfin.Api/Controllers/NotificationsController.cs @@ -75,7 +75,7 @@ namespace Jellyfin.Api.Controllers /// <returns>An <cref see="OkResult"/> containing a list of all notification types.</returns> [HttpGet("Types")] [ProducesResponseType(StatusCodes.Status200OK)] - public ActionResult<IEnumerable<NotificationTypeInfo>> GetNotificationTypes() + public IEnumerable<NotificationTypeInfo> 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> [HttpGet("Services")] [ProducesResponseType(StatusCodes.Status200OK)] - public ActionResult<IEnumerable<NameIdPair>> GetNotificationServices() + public IEnumerable<NameIdPair> GetNotificationServices() { - return _notificationManager.GetNotificationServices().ToList(); + return _notificationManager.GetNotificationServices(); } /// <summary> |
