aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-04-15 15:00:45 -0400
committerPatrick Barron <barronpm@gmail.com>2020-04-15 15:00:45 -0400
commitc4e6329e58f36c340a65fa216a058ce1fee5507f (patch)
treeba30715874a2d73e2864e5ba9006d632ac8fa0d7 /Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs
parenta54dca09d8c581bc2f64235d2d9a07278f5c02c4 (diff)
Clean up and document ChannelManager.cs and implement suggestions
Diffstat (limited to 'Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs')
-rw-r--r--Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs b/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs
index c677e9fbc..3e149cc82 100644
--- a/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs
+++ b/Emby.Server.Implementations/Channels/ChannelDynamicMediaSourceProvider.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Controller.Channels;
@@ -30,7 +31,7 @@ namespace Emby.Server.Implementations.Channels
{
return item.SourceType == SourceType.Channel
? _channelManager.GetDynamicMediaSources(item, cancellationToken)
- : Task.FromResult<IEnumerable<MediaSourceInfo>>(new List<MediaSourceInfo>());
+ : Task.FromResult(Enumerable.Empty<MediaSourceInfo>());
}
/// <inheritdoc />