Clean up and document ChannelManager.cs and implement suggestions

This commit is contained in:
Patrick Barron
2020-04-15 15:00:45 -04:00
parent a54dca09d8
commit c4e6329e58
6 changed files with 139 additions and 102 deletions

View File

@@ -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 />